As has been pointed out by @waitingkuo, index=False is what you need. If you want to keep the nice table layout within your ipython notebook, you can use:
from IPython.display import display, HTML
display(HTML(df.to_html(index=False)))
More Related Contents:
- How to provide a reproducible copy of your DataFrame with to_clipboard()
- How to dynamically update a plot in a loop in IPython notebook (within one cell)
- Export pandas Styled table to image file
- Format a number with commas to separate thousands
- Jupyter python3 notebook cannot recognize pandas
- Pandas: Adding new column to dataframe which is a copy of the index column
- pandas: filter rows of DataFrame with operator chaining
- Pandas groupby: How to get a union of strings
- How do I create test and train samples from one dataframe with pandas?
- pandas groupby sort within groups
- Applying function with multiple arguments to create a new pandas column
- Python Pandas max value in a group as a new column
- Convert columns to string in Pandas
- Running Jupyter via command line on Windows
- append dataframe to excel with pandas
- Why can pandas DataFrames change each other?
- Precision lost while using read_csv in pandas
- Copying MultiIndex dataframes with pd.read_clipboard?
- Get list of pandas dataframe columns based on data type
- pandas.read_csv: how to skip comment lines
- Adding a ‘count’ column to the result of a groupby in pandas?
- Pandas: Difference between largest and smallest value within group
- Select row by max value in group in a pandas dataframe
- pandas groupby where you get the max of one column and the min of another column
- T-test in Pandas
- Pandas sum across columns and divide each cell from that value
- pandas columns correlation with statistical significance
- import a function from another .ipynb file
- dask dataframe how to convert column to to_datetime
- How to write to an existing excel file without breaking formulas with openpyxl?