My dataFrame looks like this.
i only want the values for ford and honda and amc. Is there any way i can get these values.
I tried this but its not working. x= grouped["ford", "buick" , "honda"].agg([np.min, np.max, np.mean])
My dataFrame looks like this.
i only want the values for ford and honda and amc. Is there any way i can get these values.
I tried this but its not working. x= grouped["ford", "buick" , "honda"].agg([np.min, np.max, np.mean])
You need something like this.
brand=["ford", "buick" , "honda"]
df_new=df[df['brands'].isin(brand)]