Snowflake SnowPro Advanced: Data Scientist Certification Exam DSA-C02 Question # 3 Topic 1 Discussion

Snowflake SnowPro Advanced: Data Scientist Certification Exam DSA-C02 Question # 3 Topic 1 Discussion

DSA-C02 Exam Topic 1 Question 3 Discussion:
Question #: 3
Topic #: 1

Consider a data frame df with 10 rows and index [ 'r1', 'r2', 'r3', 'row4', 'row5', 'row6', 'r7', 'r8', 'r9', 'row10']. What does the aggregate method shown in below code do?

g = df.groupby(df.index.str.len())

g.aggregate({'A':len, 'B':np.sum})


A.

Computes Sum of column A values


B.

Computes length of column A


C.

Computes length of column A and Sum of Column B values of each group


D.

Computes length of column A and Sum of Column B values


Get Premium DSA-C02 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.