I have the following csv file:
Filesystem,Size,Used,Avail,Use,Mounted,on
/dev/sda3,196G,124G,63G,67,/
tmpfs,32G,144K,32G,1,/dev/shm
/dev/sda1,194M,42M,143M,23,/boot
I'm reading the file using the following code:
df = pandas.read_csv(tempFolder+"diskSpace.txt", sep=',',header=None)
I tried to print the Use column with three different approaches:
print(df[Use])
print(df['Use'])
print(df["Use"])
It fails to print the Use column