docstr: add turbulence index from a precalcualted dataframe
  :param data: (df) pandas dataframe
  :return: (df) pandas dataframe
docstr_tok: ["add","turbulence","index","from","a","precalcualted","dataframe",":","param","data",":","(","df",")","pandas","dataframe",":","return",":","(","df",")","pandas","dataframe"]
code: def add_turbulence(self, data, time_period=252):
      """
      add turbulence index from a precalcualted dataframe
      :param data: (df) pandas dataframe
      :return: (df) pandas dataframe
      """
      df = data.copy()
      turbulence_index = self.calculate_turbulence(
          df, time_period=time_period
      )
      df = df.merge(turbulence_index, on="date")
      df = df.sort_values(["date", "tic"]).reset_index(drop=True)
      return df
  
file_path: FinRL/finrl/meta/data_processors/processor_wrds.py
imports: from __future__ import annotations
  import datetime
  import exchange_calendars
  import numpy
  import pandas
  import pytz
  import wrds
  from stockstats import StockDataFrame
label_desc: Use image node_id 7 for calling the WrdsProcessor obj's underlying member method code with example usage: obj.add_turbulence(data, time_period) and returns: df