Skip to main contentSkip to solution

Which of the following functions does not come under the category of statistical functions in Pandas?

Solution

✅ Correct Option: 4

sort() arranges data in order. It does not calculate any statistical measure, so it is not a statistical function.

median(), mode() and mean() each summarise data by giving its middle value, most frequent value and average respectively, so they are statistical functions.

In Pandas, sorting is done with sort_values() or sort_index().

Keyboard Shortcuts

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