I have a pandas dataframe as below:
import pandas as pd df = pd.DataFrame({\'col1\':[\'abc\', \'abc\', \'abc\', \'xyz\', \'xyz\', \'cd\'], \'col2\':[\'2020-02-01\