Skip to content

Python code snippet – How to make index column as a normal column?

df.reset_index(level=0, inplace=True)
See also  Python code snippet - How to find last element of list?
, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.