This code is giving me an error in Pandas:
df1 = pd.read_excel(file1,header=None, index_col=[0,1])
...gives this error:
Error: offset = 1 + header TypeError: unsupported operand type(s) for +: 'int' and 'NoneType'
If I have only one index col its working fine:
df1 = pd.read_excel(file1,header=None, index_col=0)
Or if I have multiple index column with header its working fine:
df1 = pd.read_excel(file1,index_col=[0,1])
So, how to define multiple index column with no header. The issue here is internally the code is trying to add 1 to header (which is None) in case of multiple index and its failing.
File content: row 1: p w 1 2 row 2: q x 3 4