S

Shyam Dubey • 3.70K Points
Extraordinary

Q. Which method is used to apply a function to each element of a Series or DataFrame?

  • (A) apply()
  • (B) map()
  • (C) transform()
  • (D) forEach()
  • Correct Answer - Option(A)
  • Views: 3
  • Filed under category Pandas
  • Hashtags:

Explanation by: Shyam Dubey
The apply() method allows you to apply a function along rows or columns in a DataFrame, or to each element in a Series.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.