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

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

Open
QinZiwen opened this issue Oct 20, 2020 · 2 comments
Open

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

QinZiwen opened this issue Oct 20, 2020 · 2 comments

Comments

@QinZiwen
Copy link

python src/color.py has some problems:

File "src/color.py", line 164, in <module>
    hist = color.histogram(data.ix[0,0], type='global')
return object.__getattribute__(self, name)
AttributeError: 'DataFrame' object has no attribute 'ix'
@RohanVB
Copy link

RohanVB commented Oct 28, 2020

This is probably just a versioning error. Alternatively, you can try using .iloc or .loc once you have the right version of pandas installed.

@SaadBazaz
Copy link

.ix is deprecated. Try changing those instances to .iloc or downgrade your version of Pandas.

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

3 participants