Skip to main content

Analyzing IoT Data in Python

Learn how to import, clean and manipulate IoT data in Python to make it ready for machine learning.

Start Course for Free
4 Hours16 Videos53 Exercises3,859 Learners4250 XP

Create Your Free Account



By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA. You confirm you are at least 16 years old (13 if you are an authorized Classrooms user).

Loved by learners at thousands of companies

Course Description

Have you ever heard about Internet of Things devices? Of course, you have. Maybe you also have a Raspberry PI in your house monitoring the temperature and humidity. IoT devices are everywhere around us, collecting data about our environment. You will be analyzing Environmental data, Traffic data as well as energy counter data. Following the course, you will learn how to collect and store data from a data stream. You will prepare IoT data for analysis, analyze and visualize IoT data, before implementing a simple machine learning model to take action when certain events occur and deploy this model to a real-time data stream.

  1. 1

    Accessing IoT Data


    In this chapter, you will first understand what IoT data is. Then, you learn how to aquire IoT data through a REST API and using an MQTT data stream to collect data in real time.

    Play Chapter Now
    Introduction to IoT data
    50 xp
    IoT devices
    50 xp
    Data acquisition
    100 xp
    Acquire data with pandas
    100 xp
    Understand the data
    50 xp
    Store data
    100 xp
    Read data from file
    100 xp
    Understanding the data
    100 xp
    Introduction to Data streams
    50 xp
    What is MQTT
    50 xp
    MQTT single message
    100 xp
    Save Datastream
    100 xp
  2. 2

    Processing IoT data

    In the second chapter, you will look at the data you gathered during the first chapter. You will visualize the data and learn the importance of timestamps when dealing with data streams. You will also implement caching to an MQTT data stream.

    Play Chapter Now
  3. 4

    Machine learning for IoT

    In this final chapter, you will use the data you analyzed during the previous chapters to build a machine learning pipeline. You will then learn how to implement this pipeline into a data stream to make realtime predictions.

    Play Chapter Now


EnvironmentTraffic (heavy vehicles)Traffic (light vehicles)


hadrien-d4e73b49-bc29-46b7-a485-2f598f38e3b9Hadrien Lacroixhillary-green-lermanHillary Green-Lerman
Matthias Voppichler Headshot

Matthias Voppichler

Software Developer

Matthias is an IT Developer with over 10 years of experience in analyzing data and developing data Pipelines for different kinds of data. His responsabilities include developing and maintaining data Pipelines, as well as supporting the business to gather insights from the collected data and finding new ways to combine different data sources.
See More

What do other learners have to say?

I've used other sites—Coursera, Udacity, things like that—but DataCamp's been the one that I've stuck with.

Devon Edwards Joseph
Lloyds Banking Group

DataCamp is the top resource I recommend for learning data science.

Louis Maiden
Harvard Business School

DataCamp is by far my favorite website to learn from.

Ronald Bowers
Decision Science Analytics, USAA