I have a Pandas Dataframe where when doing
mydf.info()
all the datatypes are non-null object
Then I do:
mydf['CCI'] = mydf['CCI'].astype(str)
Afterwards
mydf.info()
shows exactly the same result as before trying to change the data type. Why is it that this line of code does not change the type of data of the DF?