Question:

Which of the following is not a Descriptive Statistical method that can be applied to a DataFrame?

Show Hint

In pandas, \texttt{mean()} is the method used to compute the average of a DataFrame, while \texttt{avg()} is typically used in SQL and is not a pandas method.
Updated On: Apr 24, 2025
  • sum()
  • count()
  • avg()
  • mean()
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is C

Solution and Explanation

The \texttt{avg()} method is not directly available in pandas for DataFrame objects. Instead, you can use the \texttt{mean()} method to calculate the average of numerical columns. While \texttt{sum()}, \texttt{count()}, and \texttt{mean()} are commonly used Descriptive Statistical methods in pandas, \texttt{avg()} is not one of them. Therefore, the correct answer is \texttt{avg()}.
Was this answer helpful?
0
0

Questions Asked in CUET exam

View More Questions