<jupyter_start><jupyter_text>Temperature Prediction<jupyter_code>import pandas as pd

import seaborn as sns

sns.set_style("whitegrid")
FIGSIZE = (17, 5)
# London Weather data
df = pd.read_csv('data/weather_data_analysis/processed_heathrow_hourly.csv')
df['date'] = pd.to_datetime(df['time'], unit='s')

df = df.set_index('date', drop=True).sort_index()

df = df[:'2019-12-31']
df.head(2)
fig = (
    df
     [['temperature']]
    .groupby(df.index.date)
    .mean()
    .plot(figsize=FIGSIZE, alpha=0.8)
);
# By month
fig = (
    df
     [['temperature', 'apparentTemperature']]
     .groupby([df.index.month, df.index.month_name()])
     .mean()
     .plot(figsize=FIGSIZE)
)

fig.set_xlabel('Month');
# By Week
fig = (
    df
     [['temperature', 'apparentTemperature']]
     .groupby([df.index.week])
     .mean()
     .plot(figsize=FIGSIZE)
);

fig.set_xlabel('Week');
# By hour
fig = (
    df
     [['temperature', 'apparentTemperature']]
    .groupby([df.index.hour])
    .mean()
    .plot(figsize=FIGSIZE)
);

fig.set_xlabel('Hour');
# By year
fig = (
    df
     [['temperature', 'apparentTemperature']]
    .groupby([df.index.year])
    .mean()
    .plot(figsize=FIGSIZE)
);

fig.set_xlabel('Year');<jupyter_output><empty_output><jupyter_text>windSpeed vs Aparent temperature graph has an interesting shape<jupyter_code>sns.pairplot(df[['apparentTemperature', 'windSpeed', 'temperature']])<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.17832167832167833, 'fraction_numerical': 0.009790209790209791, 'mean_word_length': 4.241758241758242, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '154351', 'license': 'MIT', 'n_tokens_mistral': 564, 'n_tokens_neox': 546, 'n_words': 85, 'path': 'Weather Data Analysis.ipynb', 'repo_name': 'Sabihxh/jupyter-notebooks', 'size': '1430'}