Data-Analysis-fork-ds | Question 8
Last Updated :
01 May, 2022
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
Share your thoughts in the comments
Please Login to comment...