I'd like to read a lot of excel files using pandas (python). When importing the data, I want ALL my columns to be stored as strings.
The problem is that I don't know the number of columns or even their names (it changes every time). Would you have an easy solution for 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 gets out of range sometimes since the excel files are different.
Ideally I'd like to do:
df = pd.read_excel('example.xlsx', converters = ALL)
Nevertheless, I haven't found something that would help me doing something similar so far...
Thank you for your help.
df = pd.read_excel('example.xlsx').asytpe(str)?converters = { i : str for i in range(0,99)}