How to find the average and median values of the column 'Total Traded Quantity' for each of the types of 'Trend'
df.groupby(df.Trend).mean()['Total Traded Quantity']
df.groupby(df.Trend).median()['Total Traded Quantity']


or

df_trend_average = df.groupby(df.Trend).mean()
df_trend_median = df.groupby(df.Trend).median()