Print most expensive car’s company name and price.
Expected Output:
Solution:
import pandas as pd df = pd.read_csv("D:\\Python\\Articles\\pandas\\automobile-dataset\\Automobile_data.csv") df = df [['company','price']][df.price==df['price'].max()] df
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