S

Sikhar Chaudhary • 5.88K Points
Tutor III

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: 51
  • Filed under category Pandas

Explanation by: Sikhar Chaudhary
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.


Question analytics