Suppose I have a dataframe df as:
df = pd.DataFrame({\'Index\': [1, 2, 3, 4, 5, 6, 7, 8, 9], \'Name\': [\'One\', \'Two\', \'Three\',\'One\'