spkit.stats.quick_stats

spkit.stats.quick_stats(x, show=True, return_table=True, name='x')

Quick Statistics, excluding np.nan values

Parameters:
x: 1d-array
  • array of numbers

show: bool, default=True
  • show table as pandas dataframe

return_table: bool, deafult=True
  • return Table

name: str, default=’x’
  • name of the column in table

Returns:
Sdf: pd DataFrame
  • Table of statistics

See also

get_stats, outliers

Examples

>>> import numpy as np
>>> import pandas as pd
>>> import spkit as sp
>>> x = np.random.randn(1000)
>>> df = sp.stats.quick_stats(x)
            n      mean        sd    median       min       max      q25      q75  \
x  1000.0  0.003649  1.022257  0.000009 -3.486239  2.938597 -0.71816  0.66914   
    iqr       kur       skw  
x  1.3873  0.029687  0.013038