S

Shyam Dubey • 3.70K Points
Extraordinary

Q. Which method is used to calculate the cumulative product of elements over a DataFrame or Series?

  • (A) cumprod()
  • (B) cumsum()
  • (C) prod()
  • (D) aggregate()
  • Correct Answer - Option(A)
  • Views: 2
  • Filed under category Pandas
  • Hashtags:

Explanation by: Shyam Dubey
The cumprod() method calculates the cumulative product over rows or columns of a DataFrame or Series.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.