My excel sheet:
A B
1 first second
2
3
4 x y
5 z j
Python Code:
df = pd.read_excel (filename, parse_cols=1)
return the correct result:
first second
0 NaN NaN
1 NaN NaN
2 x y
3 z j
If I want to work only with the second column
df = pd.read_excel (filename, parse_cols=[1])
Return:
second
0 y
1 j
I will have information on empty excel rows (NaN in my df), even if I only work with a specific column. If you display information about NaN, this is not normal, for example, for sciprows paramater, etc.
thank
source
share