Python Tools

A series of tools using Jupyter Notebooks (opens in a new tab) that utilize the Xweather API to download weather data and load into a pandas DataFrame (opens in a new tab) for data science purposes.

Sign up for a free developer trial (opens in a new tab) to obtain your client id and client secret.

Fetch Current Conditions (opens in a new tab)

This notebook (opens in a new tab) will allow the user to fetch current conditions for a list of locations. An optional feature allows the user to specify a list of weather attributes to include which will remove irrelevant data for that specific use case. The user also has the option to utilize a simple snippet that converts the DataFrame into a csv.

Fetch Historical Conditions With a Date Range (opens in a new tab)

Use this notebook (opens in a new tab) when historical data for a list of locations is needed. Building on the previous example, users can provide a date range, or collection of random dates, and generate CSVs with hourly conditions for each day.