KnowledgeBoat Logo
|

Informatics Practices

Which of the following is not a valid function that can be used with DataFrames ?

  1. count()
  2. sum()
  3. length()
  4. mad()

Python Pandas

2 Likes

Answer

length()

Reason — In Pandas, the length() function is not a valid function for DataFrames. Instead, we can use the len() function to get the length of a DataFrame. The other functions listed (count(), sum(), mad()) are valid functions for performing operations on DataFrames.

Answered By

1 Like


Related Questions