i have downloaded a csv file, and then read it to python dataframe, now all 4 columns all have object type, i want to convert them to str type,
and now the result of dtypes is as follows:
Name                      object
Position Title            object
Department                object
Employee Annual Salary    object
dtype: object
i try to change the type using the following methods:
path['Employee Annual Salary'] = path['Employee Annual Salary'].astype(str)
but dtypes still return type object, and i also try to provide the column type when reading csv,
path = pd.read_csv("C:\\Users\\IBM_ADMIN\\Desktop\\ml-1m\\city-of-chicago-salaries.csv",dtype={'Employee Annual Salary':str})
or
path = pd.read_csv("C:\\Users\\IBM_ADMIN\\Desktop\\ml-1m\\city-of-chicago-salaries.csv",dtype=str)
but still do not work, want to know how to change column type from object to str,

 
     
     
     
     
     
    