Q:

Find each company’s Higesht price car using python programming

0

Find each company’s Higesht price car

Expected Outcome:

Python Pandas printing each company's highest price car

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

import pandas as pd
df = pd.read_csv("D:\\Python\\Articles\\pandas\\automobile-dataset\\Automobile_data.csv")
car_Manufacturers = df.groupby('company')
priceDf = car_Manufacturers['company','price'].max()
priceDf

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now