I am trying to return the column name that has as dtypes datetime and then extract years and months from the values of the returned column name.
when