clustergrammer-widget icon indicating copy to clipboard operation
clustergrammer-widget copied to clipboard

New Version of Pandas (1.0.3) Attribute Error

Open kjijakli opened this issue 5 years ago • 4 comments

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

kjijakli avatar Apr 04 '20 00:04 kjijakli

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.

cornhundred avatar Apr 04 '20 00:04 cornhundred

Thanks

kjijakli avatar Apr 04 '20 01:04 kjijakli

I'll reclose the issue once we've updated

cornhundred avatar Apr 04 '20 02:04 cornhundred

@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.

pawarbi avatar Feb 11 '21 19:02 pawarbi