You can convert the data-frame to a string and say index=False.
Below is the command:
Hope it works!!
If you are a beginner and need to know more about Python, It's recommended to go for Python Certification course today.