Skip to content
RED SAG Skills
hardStudy question · answer published in Python interview questions, so no pointspythonpandasgroupby

groupby().first() mixes rows

Group "a" has rows (p=NaN, q=1) and (p="x", q=2). What does df.groupby("c").first() return for group "a"?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions