df = pd.read_csv("wind_data.csv")
df = df[['SETTLEMENTDATE', 'wind']].copy()
dataset = df.set_index("SETTLEMENTDATE")
dataset.index = pd.to_datetime(dataset.index)
print(dataset.head())
print(dataset.shape)
Dataset
In this dataset I want to calculate wind data for each month. (I need only 12 rows of this data set instead 105350)
Can you please help me?