tried to fix the error with column reading in pandas, not sure it is completely correct