Skip to main contentSkip to solution

Which of the following descriptive statistical methods can be applied to a DataFrame?

(A) Max

(B) Min

(C) Mean

(D) Search

Solution

✅ Correct Option: 1

In Pandas, a DataFrame has built-in descriptive statistics methods such as max()\text{max()}, min()\text{min()} and mean()\text{mean()}. They return the maximum, minimum and average of each column (or row, with axis=1\text{axis=1}).

Search is not a statistical function. Pandas has no descriptive method called search, so (D) is not included.


Options 2, 3 and 4: each includes (D) Search, which is a lookup operation (as in finding a value), not a descriptive statistic.

Other DataFrame statistics methods include sum()\text{sum()}, count()\text{count()}, median()\text{median()}, std()\text{std()} and describe()\text{describe()}.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question