code: def _moving_average(a, n=3, zero_padded=False):
      """Moving average of order n.
      If zero padded, returns an array of the same size as
      the input: the values before a[0] are considered to be 0.
      Otherwise, returns an array of length len(a) - n + 1"""
      ret = np.cumsum(a, dtype=float)
      ret[n:] = ret[n:] - ret[:-n]
      if zero_padded:
          return ret / n
      else:
          return ret[n - 1 :] / n
  
file_path: joypy/joypy/joyplot.py
imports: import numpy
  from scipy.stats import gaussian_kde
  import scipy.stats
  import warnings
  from pandas import DataFrame, Series
  from pandas.core.dtypes.common import is_number
  from pandas.core.groupby import DataFrameGroupBy
  from matplotlib import pyplot
  from warnings import warn
label_desc: Use image node_id 6 for calling a global function with example usage: _moving_average(a, n, zero_padded) and returns: unknown, unknown