AttributeError: ‘DataFrame’ object has no attribute ‘ix’

try df.iloc[:, integer]

.ix is deprecated

By the way, df.loc[:,'col_header'] is for str or Boolean indexing

Leave a Comment