I would like to read many excel files using pandas (python). When importing data, I want ALL of my columns to be saved as rows.
The problem is that I donβt know the number of columns or even their names (this changes every time). Will you have a simple solution to this problem?
What I tried to do:
converters = { i : str for i in range(0,99)}
df = pd.read_excel('example.xlsx', converters = converters)
But the index is sometimes out of range because excel files are different.
Ideally, I would like to do:
df = pd.read_excel('example.xlsx', converters = ALL)
However, I have not found anything that would help me do something like this so far ...
Thank you for your help.
source
share