NeuralAnalysis / PyalData

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

Possible bug with newer pandas version for trial_average #90

Closed JoannaChang closed 3 years ago

JoannaChang commented 3 years ago

I originally had pandas 1.1.1 and everything worked fine. When I updated to pandas 1.2.3, trial_average no longer averaged columns with series (e.g. spikes, rates, etc). In the new pandas documentation, it specifies that it won't compute the mean on series in a dataframe: https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.mean.html.

raeedcho commented 3 years ago

I think there's already a pull request related to this in the works (https://github.com/mattperich/PyalData/pull/88#issue-594176506)

bagibence commented 3 years ago

Exactly. @JoannaChang can you check if that PR works for you? If it does, I'll merge it.