I have the following dataframe:
corr_temp_df
[('vacationdate', 'date'),
('valueE', 'string'),
('valueD', 'string'),
('valueC', 'string'),
('valueB', 'string'),
('valueA', 'string')]
Now I would like to change the datatype of the column vacationdate to String, so that also the dataframe takes this new type and overwrites the datatype data for all of the entries. E.g. after writing:
corr_temp_df.dtypes
The datatype of vacationdate should be overwritten.
I already used functions like cast, StringType or astype, but I was not successful. Do you know how to do that?