To work with data frames in python, the pandas library ls very efficient. Therefore, the following lines of code will load, subset and display the maximum value of each column in the subset :
import pandas as pd
#This imports the pandas dataframe and alias it as pd
df_cars = pd.DataFrame('Cars.csv')
Subsetting the firsts UserNum row :
Using the index location method, the first userNum row has a row index of 0.
df_subset = df.iloc[:0, :]
#this selects only the first row and all the columns
#first row of df_cars dataframe has been assigned to another dataframe called the df_subset
df_subset.max()
#the max function returns the maximum value for each column
Note : the cars.csv data wasn't provided, However, this is a run-through of how to get the required output.
Learn more :https://brainly.com/question/16183131?referrer=searchResults