Python Pandas Library describe function

27 June 2023 61 Reading time: 19 second

The describe function in the Pandas library provides a statistical summary of the numerical columns in a DataFrame. This function displays statistical information such as count, mean, standard deviation, minimum value, quartiles, and maximum value for the columns.


import pandas as pd

df = pd.read_csv('data.csv')
# Get the statistical summary of the DataFrame
statistical_summary = df.describe()


Similar articles