How to Remove Pandas DataFrame Index
This tutorial will explain how we can remove the index of Pandas DataFrame. We will use the DataFrame displayed below to show how we can remove the index. import pandas as pd my_df = pd.DataFrame( { "Person": ["Alice", "Steven", "Neesham", "Chris", "Alice"], "City": ["Berlin", "Montreal", "Toronto", "Rome", "Munich"], "Mother Tongue": ["German", "French", "English", "Italian", "German"], "Age": [37, 20, 38, 23, 35], }, index=["A", "B", "C", "D", "E"], ) print(my_df) Output: