I want to change all columns of type object to str and I do not understand why this command does not work:
df.select_dtypes(include=["object"]) = df.select_dtypes(include=
["object"]).astype(str)
I want to change all columns of type object to str and I do not understand why this command does not work:
df.select_dtypes(include=["object"]) = df.select_dtypes(include=
["object"]).astype(str)