I have a pandas dataframe df with the contents below:
df = pd.DataFrame({\'x\': [\'a\', \'b\', \'c\'], \'y\': [15, 10, 5]})
enter image descr