Pandas IX indexer is deprecated
shaha-pratik opened this issue · 1 comments
shaha-pratik commented
As in the Predicting_bike_sharing_data pandas is used and ix is decrypted and .iloc and .loc indexers are used. But in the project
X, y = train_features.ix[batch].values, train_targets.ix[batch]['cnt']
and
rides.ix[test_data.index]['dteday']
use the ix.
If newer pandas version is installed then code may break and gives the error as
return object.__getattribute__(self, name) AttributeError: 'DataFrame' object has no attribute 'ix'
I would be happy to send in a PR with changes if it seems relevant to others.
shaha-pratik commented
I think there is already PR with a different name #246. I will close the request as PR is already raised.