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 insert files in tuple ?
, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

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