In this chapter, we'll transform the raw weather data fetched from the Weather API into a clean and structured format suitable for storage in our Data Warehouse (BigQuery). This involves cleaning the data, selecting relevant information, and converting it into Pandas DataFrames - a tabular format ideal for relational databases like BigQuery.
Data Snapshot and Challenges
Below is an example of the raw current weather data we're working with:

The retrieved weather data is currently stored in Python dictionaries. These dictionaries may contain a mix of:
{ 'lon': 55.2962, 'lat': 25.77 }.Our goal is to convert these dictionaries into well-structured Pandas DataFrames for efficient storage and analysis in BigQuery.
Here's the approach we'll take to transform the data: