I am using pandas for the first time.
df.groupby(np.arange(len(df))//10).mean()
I used the code above which works to take an average of every 10th row. I want to save this updated data frame but doing df.to_csv
is saving the original dataframe which I imported.
I also want to multiply one column from my df
(df.groupby
dataframe essentially) with a number and make a new column. How do I do that?