Can any one help me on this , unable to determince the reason behind the error while performing RFM analysis.
rfm= data_filtered.groupby('ProductID').agg({'Transaction Time': lambda date: (PRESENT - date.max()).days, 'RetailStore': lambda num: len(num), 'Cost': lambda price: price.sum()})HELP NEEDED!!