qiime2 / q2-composition

BSD 3-Clause "New" or "Revised" License
5 stars 28 forks source link

fixed apply TypeError related to pandas 0.23 upgrade #55

Closed nbokulich closed 6 years ago

nbokulich commented 6 years ago

fixes #54

Seems that the pandas 0.23 upgrade must change the default format output by DataFrame.apply, so that this line now generates a Series, not a DataFrame.

Series.apply (this line) does not have an axis parameter, leading to our error:

TypeError: diff_func() got an unexpected keyword argument 'axis'

So just tell DataFrame.apply to produce a dataframe (as I believe was the default in the past) and everything's copacetic. 😌

ALL TESTS PASS LOCALLY 🎉