corrected pandas error