#how to remove hidden white spaces n columns Then you can rename with data = data.rename(columns={'Number ': 'Number'})