Q. Which method is used to apply a function to each element of a Series or DataFrame?
β
Correct Answer: (A)
apply()
Explanation: The apply() method allows you to apply a function along rows or columns in a DataFrame, or to each element in a Series.