code: def expanding_std(df, shift: int = 1):
      """Calculate expanding std of all numeric columns of a pandas dataframe
  
      Function can be used by ApplyFunc module.
  
      :param pd.DataFrame df: input pandas dataframe
      :param int shift: size of shift. default is 1.
      :return: df with expanding std of columns
      """
      return df.shift(shift).expanding().std()
  
imports: import numpy
  import pandas
  from numpy.lib.stride_tricks import as_strided
  from scipy import linalg, stats
  from scipy.stats import linregress, norm
  from popmon.analysis.hist_numpy import check_similar_hists, get_consistent_numpy_2dgrids, get_consistent_numpy_entries, set_2dgrid
  from popmon.hist.hist_utils import COMMON_HIST_TYPES, is_numeric
  from popmon.stats.numpy import probability_distribution_mean_covariance
label_desc: Use image node_id 3 for calling a global function with example usage: expanding_std(df, shift) and returns: df