human
Find Average of Every Three Columns in Pandas dataframe
assistant
Here is some code to get average for every three columns in `df` dataframe

df.groupby(np.arange(len(df.columns)) // 3, axis=1).mean()

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.