I have more than 100 columns in my pandas data frame.
I want to dynamically parse each column and change the data type of the column.
For example, if the column name has date on it, then change the column to date type, else convert the column to str.
Something like this works for me,
df['Sasd Date'] = df['Sasd Date'].dt.date
df['Sasd'] = df['Sasd'].astype(str)
But I want to do it dynamically for all columns with the above condition, without mentioning the column name.