pandas.DataFrame.describe
DataFrame.describe(self: ~ FrameOrSeries, percentiles=None, include=None, exclude=None) → ~FrameOrSeries[source]
Generate descriptive statistics.
Descriptive statistics include those that summarize the central tendency, dispersion and shape of a dataset’s distribution, excluding NaN values.
Analyzes both numeric and object series, as well as DataFrame column sets of mixed data types. The output will vary depending on what is provided. Refer to the notes below for more detail.
Parameters
percentiles list-like of numbers, optional
The percentiles to include in the output. All should fall between 0 and 1. The default is [.25, .5, .75], which returns the 25th, 50th, and 75th percentiles.
include‘all’, list-like of dtypes or None (default), optional
A white list of data types to include in the result. Ignored for Series. Here are the options:
‘all’ : All columns of the input will be included in the output.
A list-like of dtypes : Limits the results to the provided data types. To limit the result to numeric types submit numpy.number. To limit it instead to object columns submit the numpy.object data type. Strings can also be used in the style of select_dtypes (e.g. df.describe(include=['O'])). To select pandas categorical columns, use 'category'
None (default) : The result will include all numeric columns.
exclude list-like of dtypes or None (default), optional,
A black list of data types to omit from the result. Ignored for Series. Here are the options:
A list-like of dtypes : Excludes the provided data types from the result. To exclude numeric types submit numpy.number. To exclude object columns submit the data type numpy.object. Strings can also be used in the style of select_dtypes (e.g. df.describe(include=['O'])). To exclude pandas categorical columns, use 'category'
None (default) : The result will exclude nothing.
Returns
Series or DataFrame
Summary statistics of the Series or Dataframe provided.
The github link for this video is below 👇👇
https://github.com/RakeshKrishna143/P...
Watch video Pandas tutorial for Beginners | Pandas Describe Function | Percentile, Include, Exclude Parameters online without registration, duration hours minute second in high quality. This video was added by user Engineers Revolution 19 July 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 843 once and liked it 8 people.