If you have a large DataFrame called df and you want to view the summary…
2026
If you have a large DataFrame called df and you want to view the summary statistics (mean, count, standard deviation, etc.) for all numerical columns, which method should you use?
- A.
df.info()
- B.
df.describe()
- C.
df.head()
- D.
df.summary()
Attempted by 85 students.
Show answer & explanation
Correct answer: B
Use the describe() method on your DataFrame (e.g., df.describe()). This function automatically calculates summary statistics like count, mean, std, min, and max for all numerical columns.