Skip to content
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

'DataFrame' object has no attribute 'ix' #39

Open
rubenssoto opened this issue Apr 7, 2020 · 8 comments
Open

'DataFrame' object has no attribute 'ix' #39

rubenssoto opened this issue Apr 7, 2020 · 8 comments

Comments

@rubenssoto
Copy link

I installed by pip, when i try yo profilling my dataframe this errors appers

'DataFrame' object has no attribute 'ix'

Thank you

@felipeeeantunes
Copy link

Same here.
I'm using pandas=1.0.3.

@crar01
Copy link

crar01 commented May 24, 2020

Same here, it is because 'ix' has been removed for pandas > 1.x.x,
in code it is results_data.ix[0] and it must be change to iloc.
I'm using pandas v1.0.3 as well.

@mrperson2015
Copy link

I just ran into this problem as well. I specified pandas version 0.25.1 which seems to have worked.

For reference here are the dependency versions I ran with successfully in PyCharm

  • Python 3.7
  • Apache Spark 2.4.6
  • An internet connection
  • jinja2 2.11.2
  • matplotlib 3.2.2
  • pandas 0.25.1
  • six 1.15.0

@leocasarsa
Copy link

leocasarsa commented Jul 20, 2020

Correction to the above:

  • Python 3.7
  • Apache Spark 2.4.6
  • An internet connection
  • jinja2 2.11.2
  • matplotlib 1.5.3
  • pandas 0.25.1
  • six 1.15.0

@BrunoGomesCoelho
Copy link

Just in case anyone else comes across this, the current version on GitHub solves the .ix problem after the work in #36 but the release hasn't been published as mentioned in #33 ;

I comment on that issue how to use pip to pull directly the Git version if anyone goes down that route.

@StevenPierre
Copy link

Any other fix on this outside of downgrading pandas?

My pandas won't revert to 0.25.1

@jbogensperger
Copy link

Its quite hard to change packages down to such an old version these days and the error still exists for me..

@BrunoGomesCoelho
Copy link

You can install directly from the latest version that has it fixed, it was just never released - For how to add that to a requirements.txt see my comment in #33 or use the same comment for pip (e.g. pip install git+https://github.com/julioasotodv/spark-df-profiling)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants