I am accessing the HousePrices.csv dataset. After assigning the dataframe, I am trying to optimize memory, for that I am changing the data types.
To my surprize I am able to change the date object into datetime. However, the other features like city, country, street, statezip data types are not changing even if I am using correct commands.
Would you help?
How would we change the type of the aforementioned datatypes into ‘String’ type?
[I am sending you the screenshot of my notebook, ipykernel Python3.]
Changing Data types failed!!!!
I am expecting I will be able to change the data types, so as to ensure when I use the groupby function for mean it wont give me an error. I assume since these features are object datatypes, it is not allowing me to do groupby aggfunction(mean).
Regards
Appreciate you reading and tryna help 🙂