Pandas DataFrame.describe()The describe() method is used for calculating some statistical data like percentile, mean and std of the numerical values of the Series or DataFrame. It analyzes both numeric and object series and also the DataFrame column sets of mixed data types. SyntaxParameters
ReturnsIt returns the statistical summary of the Series and DataFrame. Example1Output count 3.0 mean 2.0 std 1.0 min 1.0 25% 1.5 50% 2.0 75% 2.5 max 3.0 dtype: float64 Example2Output count 4 unique 3 top q freq 2 dtype: object Example3Output categorical count 3 unique 3 top u freq 1 Example4Output categorical numeric count 3 3.0 unique 3 NaN top u NaN freq 1 NaN mean NaN 2.0 std NaN 1.0 min NaN 1.0 25% NaN 1.5 50% NaN 2.0 75% NaN 2.5 max NaN 3.0 Next TopicDataFrame.drop_duplicates() |