Quantcast
Channel: Active questions tagged excel - Stack Overflow
Viewing all articles
Browse latest Browse all 88054

read_excel that creates index when index_col=none using pandas

$
0
0

I'm trying to read an excel file into a data frame and I want set the index later, so I don't want pandas to use column 0 for the index values.

By default (index_col=None), it shouldn't use column 0 of my data for the index.

How can i solve this please?

data = pd.read_excel(r'Indicators.xls', Header = True, index_col=None)

Input Excel file:

enter image description here

The output that I'm getting:

enter image description here


Viewing all articles
Browse latest Browse all 88054

Trending Articles