MaayanLab / clustergrammer-widget

The Clustergrammer interactive Jupyter notebook widget
http://nbviewer.jupyter.org/github/MaayanLab/clustergrammer-widget/blob/master/Running_clustergrammer_widget.ipynb
MIT License
47 stars 27 forks source link

New Version of Pandas (1.0.3) Attribute Error #15

Open kjijakli opened 4 years ago

kjijakli commented 4 years ago

Hi

Thank you for this very neat tool. I have installed the widget to use with Jupyterlab and I am using the latest version of Pandas (1.0.3). I get this error when I try to cluster using net.cluster(): AttributeError: 'DataFrame' object has no attribute 'ix'

I think this error might arise from depending on an older version of Pandas. If I am correct, will this be something that will be fixed soon.

Thanks, Kenan

cornhundred commented 4 years ago

Hi @kjijakli, this was recently taken care of here https://github.com/MaayanLab/clustergrammer-widget/commit/3093d4901830afc9c82db0755b55db40b44a1933

but we have to make a new release.

We also took care of this in the new Clustergrammer2 widget https://github.com/ismms-himc/clustergrammer2. For reference, we are actively upgrading the new Clustergrammer2 so we reocmmend users switch to it.

kjijakli commented 4 years ago

Thanks

cornhundred commented 4 years ago

I'll reclose the issue once we've updated

pawarbi commented 3 years ago

@cornhundred any update on this? I am getting the same error. Below are the versions I am on:

clustergrammer 1.13.6 clustergrammer-widget 1.13.3 Python 3.6 pandas 1.2.1

I installed clustergrammer_widget by : pip install --upgrade clustergrammer_widget

When I run the iris example from here, I am getting below error:

AttributeError: 'DataFrame' object has no attribute 'ix'

When I checked github, it does show ix has been replaced with .loc but not sure why I am getting the error. How can I resolve this? Thanks.