Open In App

Data-Analysis-fork-ds | Question 8

Last Updated : 01 May, 2022
Improve
Improve
Like Article
Like
Save
Share
Report

Q8. Consider the following dataframe:

df_test = df[‘body-style’, ‘price’]

The following operations is applied:

df_grp = df_test.groupby([‘body-style’], as_index=False).mean()

What are resulting values of df_grp[‘price’]:

 

(A)

The average price for each body style

(B)

The average price

(C)

The average body style


Answer: (A)

Explanation:

Quiz of this Question
Please comment below if you find anything wrong in the above post


Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads