CBSE Class 12 Informatics Practices Question 64 of 101

Python Pandas — II — Question 6

Back to all questions
6
Question

Question 6

What does info() and describe() do ?

Answer

The info() method in pandas provides basic information about a DataFrame, including the data types of each column, the number of rows, and the memory usage. It also displays the index name and type. On the other hand, the describe() method provides detailed descriptive statistics about the numerical columns in a DataFrame, including count, mean, standard deviation, minimum value, 25th percentile, median (50th percentile), 75th percentile, and maximum value.