Expected Output:
Solution:
import pandas as pd df = pd.read_csv("D:\\Python\\Articles\\pandas\\automobile-dataset\\Automobile_data.csv") car_Manufacturers = df.groupby('company') mileageDf = car_Manufacturers['company','average-mileage'].mean() mileageDf
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Solution:
need an explanation for this answer? contact us directly to get an explanation for this answer