import pandas as pd
import numpy as np

df_describe = pd.DataFrame(dataset)
df_describe.describe()

please note that dataset is your np.array to describe.

import pandas as pd
import numpy as np

df_describe = pd.DataFrame('your np.array')
df_describe.describe()
Answer from INNO TECH on Stack Overflow
🌐
Earth Data Science
earthdatascience.org β€Ί home
Run Calculations and Summary Statistics on Numpy Arrays | Earth Data Science - Earth Lab
September 15, 2020 - In the examples above, you calculated summary statistics (e.g. mean, min, max) of one-dimensional numpy arrays, and you received one summary value for the whole array.
🌐
NumPy
numpy.org β€Ί devdocs β€Ί reference β€Ί routines.statistics.html
Statistics β€” NumPy v2.5.dev0 Manual
ptp(a[, axis, out, keepdims]) Β· Range of values (maximum - minimum) along an axis
🌐
Megan Verbakel
mverbakel.github.io β€Ί 2021-01-27 β€Ί descriptive-stats
Descriptive statistics: Python guide (NumPy/Pandas) | Megan Verbakel
January 27, 2021 - They allow us to summarise data sets quickly with just a couple of numbers, and are in general easy to explain to others. In this post I’ll briefly cover when to use which statistics, and then focus on how to do them in Python. My approach is to first use just the base functions (so you understand the mechanics), and then show the equivelant functions for two common packages: NumPy ...
🌐
Seaborn Line Plots
marsja.se β€Ί home β€Ί programming β€Ί how to do descriptive statistics in python using numpy
How to do Descriptive Statistics in Python using Numpy - Erik Marsja
February 17, 2025 - The descriptive statistics we will calculate are the central tendency (in this case only the mean), standard deviation, percentiles (25 and 75), min, and max. ... In this example, I am going to use the Toothgrowth dataset (download here).
🌐
SciPy
docs.scipy.org β€Ί doc β€Ί scipy β€Ί reference β€Ί generated β€Ί scipy.stats.describe.html
describe β€” SciPy v1.17.0 Manual
>>> import numpy as np >>> from scipy import stats >>> a = np.arange(10) >>> stats.describe(a) DescribeResult(nobs=10, minmax=(0, 9), mean=4.5, variance=9.166666666666666, skewness=0.0, kurtosis=-1.2242424242424244) >>> b = [[1, 2], [3, 4]] >>> stats.describe(b) DescribeResult(nobs=2, minmax=(array([1, 2]), array([3, 4])), mean=array([2., 3.]), variance=array([2., 2.]), skewness=array([0., 0.]), kurtosis=array([-2., -2.]))
🌐
Programiz
programiz.com β€Ί python-programming β€Ί numpy β€Ί statistical-functions
NumPy Statistical Functions (With Examples)
Numpy statistical functions perform statistical data analysis.Statistics involves gathering data, analyzing it, and drawing conclusions based on the information collected. NumPy provides us with various statistical functions that can perform statistical data analysis.
🌐
NumPy
numpy.org β€Ί doc β€Ί stable β€Ί reference β€Ί routines.statistics.html
Statistics β€” NumPy v2.4 Manual
ptp(a[, axis, out, keepdims]) Β· Range of values (maximum - minimum) along an axis
Find elsewhere
🌐
Esri Community
community.esri.com β€Ί t5 β€Ί python-questions β€Ί use-numpy-to-calculate-summary-statistics β€Ί td-p β€Ί 706665
Solved: Use NumPy to calculate summary statistics? - Esri Community
December 12, 2021 - I'm able to calculate the total count for each raster value/class using summary stats and was wondering if there's a way to skip summary stats and accomplish this with NumPy instead? ... import arcpy import pandas as pd InRaster = "SomeSingleBandRaster" ##This raster was reclassified to have 4 classes## OutGDB = arcpy.env.scratchGDB SlopeReport = OutGDB + '/' + "SlopeReport" StatsTable = OutGDB + '/' + "StatsTable" #Generate Summary Statistics# arcpy.analysis.Statistics(InRaster, StatsTable, "Value SUM", "Count") #Create array and calculate percentate of each class array = arcpy.da.TableToNumPyArray(StatsTable, ['Count','SUM_Value']) df = pd.DataFrame(array) df['perc'] = df["Count"] / df["Count"].sum() * 100 print(df)‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍
🌐
Real Python
realpython.com β€Ί python-statistics
Python Statistics Fundamentals: How to Describe Your Data – Real Python
October 21, 2023 - In this step-by-step tutorial, you'll learn the fundamentals of descriptive statistics and how to calculate them in Python. You'll find out how to describe, summarize, and represent your data visually using NumPy, SciPy, pandas, Matplotlib, and the built-in Python statistics library.
🌐
TutorialsPoint
tutorialspoint.com β€Ί numpy β€Ί numpy_descriptive_statistics.htm
NumPy - Descriptive Statistics
Descriptive statistics in NumPy refers to summarizing and understanding the main features of a dataset through various statistical measures. It includes operations like calculating the mean (average), median, standard deviation, variance, and
🌐
GeeksforGeeks
geeksforgeeks.org β€Ί describe-a-numpy-array-in-python
Describe a NumPy Array in Python | GeeksforGeeks
September 2, 2021 - In order to describe our NumPy array, we need to find two types of statistics: Measures of central tendency. Measures of dispersion. The following methods are used to find measures of central tendency in NumPy: mean()- takes a NumPy array as ...
🌐
Medium
medium.com β€Ί @ishitaguharoy β€Ί five-statistics-functions-in-numpy-b61d9fa2f379
Five Statistics Functions in Numpy
March 11, 2022 - Five most commonly used descriptive statistics measures with Python's NumPy Library.
🌐
Medium
iamdamilare13.medium.com β€Ί summary-statistics-in-python-a-quick-guide-for-data-scientists-19e0f7582177
Summary Statistics in Python: A Quick Guide for Data Scientists | by Damilare Daramola | Medium
July 15, 2025 - Summary statistics are the descriptive metrics that help you understand your data quickly: ... import pandas as pd df = pd.DataFrame({ 'Age': [23, 25, 22, 30, 28, 27, 35], 'Score': [85, 90, 88, 76, 95, 89, 91] }) ... This returns count, mean, ...
🌐
DataFlair
data-flair.training β€Ί blogs β€Ί numpy-statistical-functions
NumPy Statistical Functions with Examples - DataFlair
May 9, 2021 - Learn about NumPy Statistical Functions - Max and Min functions, Mean, Median, Standard Deviation and Variance, Percentile, average, peak to peak etc.
🌐
HackerEarth
hackerearth.com β€Ί home β€Ί blog β€Ί descriptive statistics with python-numpy
Descriptive statistics with Python-NumPy
March 2, 2023 - Explore descriptive statistics with Python and NumPy. Learn how to analyze and summarize data using key statistical measures like mean, median, variance, and standard deviation.
🌐
NumPy
numpy.org β€Ί doc β€Ί 2.1 β€Ί reference β€Ί routines.statistics.html
Statistics β€” NumPy v2.1 Manual
ptp(a[, axis, out, keepdims]) Β· Range of values (maximum - minimum) along an axis
🌐
Pythonhealthdatascience
pythonhealthdatascience.com β€Ί content β€Ί 01_algorithms β€Ί 06_solutions β€Ί 04_numpy_stats.html
Statistical procedures in numpy β€” Python for health data science.
''' # note we use skip_header because the dataset has column descriptors dtoc = np.genfromtxt('dtocs.csv', skip_header=1) breach = np.genfromtxt('breach.csv', skip_header=1) return breach, dtoc breach, dtoc = load_dtoc_dataset() ###### regression code ######## # add an intercept term to the model dtoc = sm.add_constant(dtoc) model = sm.OLS(breach, dtoc) results = model.fit() print(results.summary()) OLS Regression Results ============================================================================== Dep. Variable: y R-squared: 0.714 Model: OLS Adj. R-squared: 0.710 Method: Least Squares F-statistic: 194.6 Date: Thu, 14 Oct 2021 Prob (F-statistic): 6.80e-23 Time: 17:21:39 Log-Likelihood: -945.02 No.
🌐
Python Data Science Handbook
jakevdp.github.io β€Ί PythonDataScienceHandbook β€Ί 02.04-computation-on-arrays-aggregates.html
Aggregations: Min, Max, and Everything In Between | Python Data Science Handbook
Perhaps the most common summary statistics are the mean and standard deviation, which allow you to summarize the "typical" values in a dataset, but other aggregates are useful as well (the sum, product, median, minimum and maximum, quantiles, etc.). NumPy has fast built-in aggregation functions ...
🌐
Codecademy
codecademy.com β€Ί article β€Ί hands-on-statistics-with-numpy-in-python
Hands-on Statistics with NumPy in Python | Codecademy
Learn how to calculate and interpret several descriptive statistics using the Python library NumPy. ... Get started with the most popular summary statistics: mean, median, and mode.