Which statistics does df.describe() report by default for numeric columns?
Correct answer
A. Count, mean, standard deviation, min, quartiles and max
13 views
A. Count, mean, standard deviation, min, quartiles and max
13 views
describe returns count, mean, standard deviation, minimum, the 25th, 50th and 75th percentiles, and maximum for numeric columns. Percentiles describe the spread and help spot outliers that a mean alone would hide. For object columns it switches to count, unique, top and freq, and include="all" forces both views at once.
Asked in: NTS, PPSC IT, Interviews
Not sure why the answer is A? Ask here and get an explanation.