python how to remove the title of the index from dataframe

>>> df.index.name = None
>>> print(df)

Here is what the above code is Doing:
1. We’re creating a new DataFrame called df.
2. We’re setting the index to be the ‘Date’ column.
3. We’re setting the index name to be ‘Date’.
4. We’re setting the index name to be None.