Question: Question 2 Imagine we have a pandas dataframe we have named ' df ' . The dataframe consists of 2 columns. col 1 is
Question
Imagine we have a pandas dataframe we have named df
The dataframe consists of columns.
"col is values long, and is a random mix of the letters and c
"num is also values long, and is a random set of numerical data all integers
Which of the following would give you the mean of the numerical num column, grouped by the values from column "col
dfgroupby nummeannumericonlyTrue
groupbynum on num
numgroupby num mean
None of these choices group by the values in "col
df groupbynum mean
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
