I have the following dataframe.
>> df = pd.DataFrame.from_dict({\'x\':[\'A\',\'C\',\'E\',\'B\',\'F\',\'D\',\'A\',\'D\',\'C\',\'B\',\'D\',\'C\',\'E\'],