'NoneType' object has no attribute 'sort_index'

table.sort_index(ascending=False)

I have a table of values. But when i tried to sort it out, the error i keept getting is it keeps returning None

AttributeError: 'NoneType' object has no attribute 'sort_index'

may i know how to solve

No you don’t. You have None. Nothing. (read the error message)

4 Likes