Cleaning Messy Sensor Data with Pandas | PyCon AU 2017

Added:

Data Motivation
Reading Data
Time Parsing
Data Ordering
String Encoding
Fixed Frequency
Filling Gaps
Wrap-Up

Data Motivation

2:02
Playing Section
  • 1

    Explains the need to monitor cyanobacteria levels for water health.

  • 2

    Links seasonal temperatures to bacteria growth and toxicity risks.

  • 3

    Introduces the goal of using weather data for prediction.

Basic Python programming, including familiarity with core data structures like lists, dictionaries, and basic control flow.
Fundamental concepts of the Pandas library, specifically working with DataFrames, Series, and basic indexing methods.
An understanding of tabular data structures and how to import external data sources (e.g., CSV files) into Python.
Elementary data concepts, such as what missing values (NaN/Null) represent and the basics of date and time representations.
Advanced time-series analysis in Pandas, including frequency conversion, downsampling, and rolling/expanding window calculations.
Feature engineering methodologies for transforming raw sensor telemetry into structured inputs for machine learning models.
Implementing anomaly detection algorithms to identify sensor drifts, faults, or outliers in historical data.
Scaling data cleaning workflows to handle big data or real-time streaming sensor streams using tools like Dask, PySpark, or Kafka.
4.5K views73likes29:43@PyConAUOriginal Release: 2017-08-07

This tutorial demonstrates how to clean messy sensor data using pandas, covering essential techniques including reading CSV files with proper separator and date format handling, removing duplicate entries, sorting data chronologically, transforming categorical values (like wind directions) to numerical formats, setting regular data frequencies, and interpolating missing values to fill gaps in time-series data. The presenter uses weather data as a practical example to show how raw, inconsistent datasets can be transformed into clean, usable data for analysis and modeling.