You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Same code works in pandas==0.24.0
When updated to 0.25.0 it fails and return the following error:
Traceback (most recent call last):
......
File "/home/tongli/miniconda3/envs/maars/lib/python3.7/site-packages/dabest/_classes.py", line 1235, in plot
out = EffectSizeDataFramePlotter(self, **all_kwargs)
File "/home/tongli/miniconda3/envs/maars/lib/python3.7/site-packages/dabest/plotter.py", line 377, in EffectSizeDataFramePlotter
**group_summary_kwargs)
File "/home/tongli/miniconda3/envs/maars/lib/python3.7/site-packages/dabest/plot_tools.py", line 162, in gapped_lines
quantiles = data.groupby(x)[y].quantile([0.25, 0.75])\
File "/home/tongli/miniconda3/envs/maars/lib/python3.7/site-packages/pandas/core/groupby/groupby.py", line 1908, in quantile
interpolation=interpolation,
File "/home/tongli/miniconda3/envs/maars/lib/python3.7/site-packages/pandas/core/groupby/groupby.py", line 2248, in _get_cythonized_result
func(**kwargs) # Call func to modify indexer values in place
File "pandas/_libs/groupby.pyx", line 692, in pandas._libs.groupby.group_quantile
TypeError: must be real number, not list
Hello, FYI, this is not an issue causes by dabest.
Something is broken while Cythonizing the groupby.quantile in the version 0.25 of Pandas. pandas-dev/pandas#20405 (comment) pandas-dev/pandas#27526 (comment)
I believe the best solution, in short term, is to force people stay at 0.24
@josesho It's my bad, I shouldn't close this...
I thought it will be solved rapidly...
Clearly it is not the case. I saw the issues is closed in pandas repo.
Someone can try a nightly build of pandas to see if it works?
this seems to work with pandas 0.25.3 (pandas issue reckons it was fixed back in .2 but I haven't tested that). Any chance of relaxing the version restriction?
Hi @akdor1154, sorry for the delay; I just got back in the office. Thanks for the heads-up, I'll check out the latest pandas version and fix it ASAP over Christmas break
Activity
josesho commentedon Jul 24, 2019
I also see this error, after upgrading to
pandas==0.25.The last traceback pointing to
dabestisSomething has changed in
df.groupby().quantile(). I will let you know when this is fixed. If you squash this earlier, feel free to do a pull request!Thanks,
Joses
BioinfoTongLI commentedon Jul 29, 2019
Hello, FYI, this is not an issue causes by dabest.
Something is broken while Cythonizing the
groupby.quantilein the version0.25ofPandas.pandas-dev/pandas#20405 (comment)
pandas-dev/pandas#27526 (comment)
I believe the best solution, in short term, is to force people stay at
0.24josesho commentedon Jul 30, 2019
Ah ok, thanks @BioinfoTongLI for following this up! Let's wait for
pandas=0.25.1to be released.schlegelp commentedon Aug 30, 2019
Just to add that I am still getting an error (albeit different from OP) with pandas
0.25.1and dabest0.2.4running the iris example in the README:BioinfoTongLI commentedon Sep 6, 2019
@josesho It's my bad, I shouldn't close this...
I thought it will be solved rapidly...
Clearly it is not the case. I saw the issues is closed in
pandasrepo.Someone can try a nightly build of
pandasto see if it works?josesho commentedon Sep 6, 2019
The pandas developers tried a patch with
0.25.1, but there's still a problem...I've opened an issue with them pandas-dev/pandas#28312.
I think the best option for now is to stick with
pandas==0.24.akdor1154 commentedon Dec 17, 2019
this seems to work with pandas 0.25.3 (pandas issue reckons it was fixed back in .2 but I haven't tested that). Any chance of relaxing the version restriction?
josesho commentedon Dec 20, 2019
Hi @akdor1154, sorry for the delay; I just got back in the office. Thanks for the heads-up, I'll check out the latest pandas version and fix it ASAP over Christmas break
josesho commentedon Dec 26, 2019
Closed with #89