A

Admin • 828.03K Points
Coach

Q. What does `df['col'].cumsum()` do?

  • (A) Returns cumulative sum of the column
  • (B) Returns rolling average
  • (C) Returns total sum
  • (D) Returns unique values
  • Correct Answer - Option(A)
  • Views: 6
  • Filed under category Pandas
  • Hashtags:

Explanation by: Admin
`cumsum()` returns the cumulative sum of the Series.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.