Question: should i use my logic or this: upper_limit = df['Income'].quantile(0.95) lower_limit = df['Income'].quantile(0.05) df['Income'] = np.where(df['Income'] > upper_limit, upper_limit, df['Income']) df['Income'] = np.where(df['Income']
should i use my logic or this: upper_limit = df['Income'].quantile(0.95) lower_limit = df['Income'].quantile(0.05) df['Income'] = np.where(df['Income'] > upper_limit, upper_limit, df['Income']) df['Income'] = np.where(df['Income']
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
