code: def calc_distribution_stats(x):
      """Calculate various summary statistics of data.
  
      Parameters
      ----------
      x : numpy.ndarray or pandas.Series
          Array to compute summary statistics for.
  
      Returns
      -------
      pandas.Series
          Series containing mean, median, std, as well as 5, 25, 75 and
          95 percentiles of passed in values.
      """
  
      return pd.Series(
          {
              "mean": np.mean(x),
              "median": np.median(x),
              "std": np.std(x),
              "5%": np.percentile(x, 5),
              "25%": np.percentile(x, 25),
              "75%": np.percentile(x, 75),
              "95%": np.percentile(x, 95),
              "IQR": np.subtract.reduce(np.percentile(x, [75, 25])),
          }
      )
  
imports: from __future__ import division
  from collections import OrderedDict
  from functools import partial
  import empyrical
  import numpy
  import pandas
  import scipy
  import scipy.stats
  from sklearn import linear_model
  from .deprecate import deprecated
  from .interesting_periods import PERIODS
  from .txn import get_turnover
  from .utils import APPROX_BDAYS_PER_MONTH, APPROX_BDAYS_PER_YEAR
  from .utils import DAILY
label_desc: Use image node_id 26 for calling a global function with example usage: calc_distribution_stats(x) and returns: pd