Build the future of communications.
Start Building for Free

pandas posts

  • By Johnny Nguyen
    How to Build a Linear Regression Model Using Twilio SMS and Python How to Build a Linear Regression Model Using Twilio SMS and Python

    Linear regression is a common and useful approach for modeling the relationship between a dependent variable and one or more independent variables. Its use spans many applications, such as economics, medicine, and science. Whether you're an expert in a lab or a beginner on a laptop, linear regression is a way to achieve valuable results built on relatively simple formulas.

    In this tutorial, you will implement a linear regression model using Python and scikit-learn. To add more functionality, you will use Flask and Twilio's Programmable Messaging API to help you build your data and make predictions from the convenience of your phone.

    Prerequisites

    To continue with this tutorial, you will need:

    • Python 3.10 or higher installed on your machine.
    • A Twilio account. If you haven’t yet, sign up for a free Twilio trial.
    • A Twilio phone number. After having an account, you will need to obtain a Twilio phone …
    Read More
  • By Joyce Lin
    Visualize Twilio Usage Data with Python, Pandas and Jupyter Notebooks Visualize Twilio Usage Data with Python, Pandas and Jupyter Notebooks

    Some mysteries in life can only be answered by data. For example, if you have questions about your Twilio usage, there’s a few ways to dig into the data. There’s prebuilt summaries and graphs of your activity in the Twilio console, and if you’re handy with a spreadsheet, you can export the data. There’s also third-party providers with out-of-the-box analytics and visualizations.

    If nothing answers your particular question, this tutorial shows you how to make custom reports using the Twilio REST API to access your data and drive your own insights.

    Tutorial requirements

    • Python version 3
    • A free or paid Twilio account with a history of activity

    Set up the Python virtual environment

    Make a new project directory, and change into the directory from the command line.

    $ mkdir twilio-jupyter
    $ cd twilio-jupyter
    

    Create a virtual environment called venv. If you’re on Unix or Mac operating systems, …

    Read More
  • By Imran Khan
    Build a Soccer Stats WhatsApp Chatbot with Python, Flask and Twilio Build a Soccer Stats WhatsApp Chatbot with Python, Flask and Twilio

    There isn’t much live sport to watch at the moment which gives us the perfect opportunity to analyze historical data about the sport instead! In this tutorial I’m going to show you how to build a basic chatbot for WhatsApp using the Twilio API for WhatsApp and the Flask framework for Python.

    The chatbot will allow users to get information about soccer teams and match statistics. Here’s an example showing how it works:

    soccer chatbot demo

    Tutorial requirements

    To follow this tutorial you will need the following:

    • Python 3.6 or newer. You can download an installer from python.org.
    • Flask. We will use this web framework to build an application that responds to incoming WhatsApp messages.
    • ngrok. We will use this free utility to connect our Flask application running on our local system to a public URL that Twilio can connect to from the Internet. Installation instructions for your operating system …
    Read More
  • Newer
    Older
    Sign up and start building
    Not ready yet? Talk to an expert.