pandas - Has "na_values" been changed in python 3 -
teaching myself python following textbook (which using python 2.7). following snipet of code supposed generate table, read csv file downloaded
edu = pd.read_csv('c:/users/joubertd/desktop/python_data_files/educ_figdp_1_data.csv', na_values=':', usecols=['time', 'geo', 'value']) edu
however code above gives me this
unnamed: 1 unnamed: 2
so, wondering if code na_values changed python 2.7 3.xx
thanks
doug
i don't believe getting due issue between python 3 , 2.7. rather believe csv file reading not contain header , result pandas outputting unnamed.
Comments
Post a Comment