Exam DISC-DA Practice Question 11
Study guide: Exam DISC-DA
A dataframe pol has columns terr and prem. Territory T2 has three rows, with premiums 900, NA and 1,500. An analyst runs
pol |> group_by(terr) |> summarize(n = n(), avg = mean(prem))
What does the T2 row of the result show?
- A)
n= 3 andavg=NA - B)
n= 2 andavg= 1,200 - C)
n= 3 andavg= 800 - D)
n= 3 andavg= 1,200
Answer this question and see the worked solution