I have a dataframe and when I do df.dtypes in shows the column is an object
I do df["column_name"] = df["column_name"].astype(str)
and again check df.dtypes it still shows the column type as object. Any idea bow to fix this.
When I do df['column_name'].to_string().dtype
I get an error
AttributeError: 'unicode' object has no attribute 'dtype'
df["column_name"] = df["column_name"].astype("string")