<jupyter_start><jupyter_text>OpenWeather API Example OpenWeather output:                      ```                {  "lat": 33.44,  "lon": -94.04,  "timezone": "America/Chicago",  "timezone_offset": -21600,  "current": {    "dt": 1618317040,    "sunrise": 1618282134,    "sunset": 1618333901,    "temp": 284.07,    "feels_like": 282.84,    "pressure": 1019,    "humidity": 62,    "dew_point": 277.08,    "uvi": 0.89,    "clouds": 0,    "visibility": 10000,    "wind_speed": 6,    "wind_deg": 300,    "weather": [      {        "id": 500,        "main": "Rain",        "description": "light rain",        "icon": "10d"      }    ],    "rain": {      "1h": 0.21    }  },    "minutely": [    {      "dt": 1618317060,      "precipitation": 0.205    },    ...  },    "hourly": [    {      "dt": 1618315200,      "temp": 282.58,      "feels_like": 280.4,      "pressure": 1019,      "humidity": 68,      "dew_point": 276.98,      "uvi": 1.4,      "clouds": 19,      "visibility": 306,      "wind_speed": 4.12,      "wind_deg": 296,      "wind_gust": 7.33,      "weather": [        {          "id": 801,          "main": "Clouds",          "description": "few clouds",          "icon": "02d"        }      ],      "pop": 0    },    ...  }    "daily": [    {      "dt": 1618308000,      "sunrise": 1618282134,      "sunset": 1618333901,      "moonrise": 1618284960,      "moonset": 1618339740,      "moon_phase": 0.04,      "temp": {        "day": 279.79,        "min": 275.09,        "max": 284.07,        "night": 275.09,        "eve": 279.21,        "morn": 278.49      },      "feels_like": {        "day": 277.59,        "night": 276.27,        "eve": 276.49,        "morn": 276.27      },      "pressure": 1020,      "humidity": 81,      "dew_point": 276.77,      "wind_speed": 3.06,      "wind_deg": 294,      "weather": [        {          "id": 500,          "main": "Rain",          "description": "light rain",          "icon": "10d"        }      ],      "clouds": 56,      "pop": 0.2,      "rain": 0.62,      "uvi": 1.93    },    ...    },    "alerts": [    {      "sender_name": "NWS Tulsa",      "event": "Heat Advisory",      "start": 1597341600,      "end": 1597366800,      "description": "...HEAT ADVISORY REMAINS IN EFFECT FROM 1 PM THIS AFTERNOON TO\n8 PM CDT THIS EVENING...\n* WHAT...Heat index values of 105 to 109 degrees expected.\n* WHERE...Creek, Okfuskee, Okmulgee, McIntosh, Pittsburg,\nLatimer, Pushmataha, and Choctaw Counties.\n* WHEN...From 1 PM to 8 PM CDT Thursday.\n* IMPACTS...The combination of hot temperatures and high\nhumidity will combine to create a dangerous situation in which\nheat illnesses are possible.",      "tags": [        "Extreme temperature value"        ]    },    ...  ]}```  Current Weather Data  Get current wind:<jupyter_code>def get_current_wind_forecast() -> dict:
    current_exclusions = ",".join([
        i for i in s.OPEN_WEATHER_API_TYPES if i != "current"
    ])
    wind_fields = ["wind_speed", "wind_deg", "wind_gust"]

    request_url = (
        f"{s.OPEN_WEATHER_URL_BASE}"
        f"?lat={s.LOCATION_LATITUDE}&lon={s.LOCATION_LONGITUDE}"
        f"&exclude=[{current_exclusions}]"
        f"&appid={s.OPEN_WEATHER_API_KEY}"
    )

    output = requests.get(request_url)

    if output.status_code == 200:
        output_json = json.loads(output.text)
        wind = {
            k: v for k, v in output_json["current"].items() if k in wind_fields
        }

        return wind
# Note: Wind speed is expressed in metres/second
get_current_wind_forecast()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.17051209904333145, 'fraction_numerical': 0.09003939223410241, 'mean_word_length': 2.093994778067885, 'pattern_counts': {'":': 87, '<': 5, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '200320', 'license': 'MIT', 'n_tokens_mistral': 1496, 'n_tokens_neox': 1218, 'n_words': 290, 'path': 'Wind_Data_EDA.ipynb', 'repo_name': 'kelvinducray/strong-wind-warning-app', 'size': '3554'}