Q. Which method is used to apply a function along a DataFrame axis?
β
Correct Answer: (B)
apply()
Explanation: apply() can be used to apply a function along the rows or columns of a DataFrame.