CBIR icon indicating copy to clipboard operation
CBIR copied to clipboard

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

Open QinZiwen opened this issue 3 years ago • 2 comments

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'

QinZiwen avatar Oct 20 '20 03:10 QinZiwen

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

RohanVB avatar Oct 28 '20 13:10 RohanVB

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

SaadBazaz avatar Jun 22 '21 18:06 SaadBazaz