NeuralAnalysis / PyalData

Repository for the Python implementation of the TrialData analysis library.
GNU General Public License v3.0
7 stars 9 forks source link

Fix trial_average and bump required pandas version #88

Closed bagibence closed 3 years ago

bagibence commented 3 years ago

The trial_average function was broken on newer versions of pandas because of changes introduced in pandas 1.2.0 (see https://pandas.pydata.org/pandas-docs/stable/whatsnew/v1.2.0.html#consistency-of-dataframe-reductions).

Update it to work with the new behavior of pd.DataFrame.mean

AtMostafa commented 3 years ago

This PR worked for me!

bagibence commented 3 years ago

Thanks! It worked for @JoannaChang, too, so I'll merge it.