Spaces:
Sleeping
Sleeping
File size: 284 Bytes
ca0c3f0 | 1 2 3 4 5 6 7 8 9 | def true_code():
import pandas as pd
df = pd.read_csv("raw_data/main_data.csv")
df['Timestamp'] = pd.to_datetime(df['Timestamp'])
df['Month'] = df['Timestamp'].dt.month_name()
data = df.groupby("Month")["PM2.5"].mean().idxmax()
print(data)
true_code() |