New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cannot plot the figures #113
Comments
Hi @jelyness , Can you provide a copy-pastable example of the data and code you are using? Also, can you run dabest.__version__ and pandas.__version__ and report what versions are printed? Thanks! |
It works before. I think it could be the version issue. I have the same issue while running your sample code: ImportError Traceback (most recent call last) ~/opt/miniconda3/envs/py3/lib/python3.7/site-packages/dabest/_classes.py in plot(self, color_col, raw_marker_size, es_marker_size, swarm_label, contrast_label, swarm_ylim, contrast_ylim, custom_palette, swarm_desat, halfviolin_desat, halfviolin_alpha, float_contrast, show_pairs, group_summaries, group_summaries_offset, fig_size, dpi, ax, swarmplot_kwargs, violinplot_kwargs, slopegraph_kwargs, reflines_kwargs, group_summary_kwargs, legend_kwargs) ~/opt/miniconda3/envs/py3/lib/python3.7/site-packages/dabest/plotter.py in EffectSizeDataFramePlotter(EffectSizeDataFrame, **plot_kwargs) ~/opt/miniconda3/envs/py3/lib/python3.7/site-packages/seaborn/_decorators.py in inner_f(*args, **kwargs) ~/opt/miniconda3/envs/py3/lib/python3.7/site-packages/seaborn/categorical.py in swarmplot(x, y, hue, data, order, hue_order, dodge, orient, color, palette, size, edgecolor, linewidth, ax, **kwargs) ~/opt/miniconda3/envs/py3/lib/python3.7/site-packages/seaborn/categorical.py in init(self, x, y, hue, data, order, hue_order, dodge, orient, color, palette) ~/opt/miniconda3/envs/py3/lib/python3.7/site-packages/seaborn/categorical.py in establish_variables(self, x, y, hue, data, orient, order, hue_order, units) ~/opt/miniconda3/envs/py3/lib/python3.7/site-packages/seaborn/categorical.py in _group_longform(self, vals, grouper, order) ~/opt/miniconda3/envs/py3/lib/python3.7/site-packages/pandas/core/generic.py in groupby(self, by, axis, level, as_index, sort, group_keys, squeeze, observed, **kwargs) ~/opt/miniconda3/envs/py3/lib/python3.7/site-packages/pandas/core/groupby/groupby.py in groupby(obj, by, **kwds) ~/opt/miniconda3/envs/py3/lib/python3.7/site-packages/pandas/core/groupby/groupby.py in init(self, obj, keys, axis, level, grouper, exclusions, selection, as_index, sort, group_keys, squeeze, observed, **kwargs) ~/opt/miniconda3/envs/py3/lib/python3.7/site-packages/pandas/core/groupby/grouper.py in _get_grouper(obj, key, axis, level, sort, observed, mutated, validate) ~/opt/miniconda3/envs/py3/lib/python3.7/site-packages/pandas/core/groupby/grouper.py in init(self, index, grouper, obj, name, level, sort, observed, in_axis) ~/opt/miniconda3/envs/py3/lib/python3.7/site-packages/pandas/core/groupby/categorical.py in ImportError: cannot import name 'recode_for_categories' from 'pandas.core.arrays.categorical' (/Users/yinawei/opt/miniconda3/envs/py3/lib/python3.7/site-packages/pandas/core/arrays/categorical.py) |
Hi @yinawei , can you try to create another environment and install DABEST, the latest version of pandas to check if the problem remains? |
The error occurred while calling "two_groups_unpaired.cohens_d.plot"
ImportError: cannot import name 'recode_for_categories' from 'pandas.core.arrays.categorical' (/Users/yinawei/opt/miniconda3/envs/py3/lib/python3.7/site-packages/pandas/core/arrays/categorical.py)
The text was updated successfully, but these errors were encountered: