For this dataframe:
import pandas as pd
df=pd.DataFrame({\'FRUIT\':[\'apple\',\'apple\',\'apple\',\'pear\',\'pear\',\'orange\',\'orange\']})
I need to a