code: def rename(
      df,
      _df,
      study,
      periods,
      column,
      include,
      str,
      detail,
      output=None,
      period_dict=None,
  ):
      d_name = dict(
          [
              (
                  i,
                  get_column_name(
                      i,
                      study=study,
                      str=str,
                      period=periods,
                      column=column,
                      period_dict=period_dict,
                  ),
              )
              for i in _df.columns
          ]
      )
  
      _df = _df.rename(columns=d_name)
      if detail:
          __df = _df
      elif output:
          __df = _df[[d_name[_] for _ in output]]
      else:
          __df = _df[d_name[study]]
  
      if include:
          return pd.concat([df, __df], axis=1)
      else:
          return __df
  
imports: import pandas
  import numpy
  from plotly.graph_objs import Figure
  from .utils import make_list
label_desc: Use image node_id 4 for calling a global function with example usage: rename(df, _df, study, periods, column, include, str, detail, output, period_dict) and returns: pd, __df