import pandas as pd df1 = pd.read_csv('sales.csv',sep=',') df1['R_Quartile'] = pd.qcut(df1['recency'],[0,0.25,0.5,0.75,1],[4,3,2,1]).astype('str') df1["F_Quartile"] = pd.qcut(df1['frequency'],[0,0.25,0.5,0.75,1],[1,2,3,4]).astype('str') df1['M_Quartile'] = pd.qcut(df1['monetary'],[0,0.25,0...