code: def stacked(df):
      df_top = df.cumsum(axis=1)
      df_bottom = df_top.shift(axis=1).fillna({"y0": 0})[::-1]
      df_stack = pd.concat([df_bottom, df_top], ignore_index=True)
      return df_stack
  
imports: import numpy
  import pandas
  from bokeh.palettes import brewer
  from bokeh.plotting import figure, show
label_desc: Use image node_id 1 for calling a global function with example usage: stacked(df) and returns: df_stack