class_docstr: Does simple seasonality _calculations on data.
  
      
class_docstr_tok: ["Does","simple","seasonality","_calculations","on","data","."]
code: def time_of_day_seasonality(
      self, data_frame, years=False, seconds=False
  ):
      calculations = Calculations()
  
      if years is False:
          if seconds:
              return calculations.average_by_hour_min_sec_of_day_pretty_output(
                  data_frame
              )
          else:
              return (
                  calculations.average_by_hour_min_of_day_pretty_output(
                      data_frame
                  )
              )
  
      set_year = set(data_frame.index.year)
      year = sorted(list(set_year))
  
      intraday_seasonality = None
  
      commonman = CommonMan()
  
      for i in year:
          if seconds:
              temp_seasonality = calculations.average_by_hour_min_sec_of_day_pretty_output(
                  data_frame[data_frame.index.year == i]
              )
          else:
              temp_seasonality = (
                  calculations.average_by_hour_min_of_day_pretty_output(
                      data_frame[data_frame.index.year == i]
                  )
              )
  
          temp_seasonality.columns = commonman.postfix_list(
              temp_seasonality.columns.values, " " + str(i)
          )
  
          if intraday_seasonality is None:
              intraday_seasonality = temp_seasonality
          else:
              intraday_seasonality = intraday_seasonality.join(
                  temp_seasonality
              )
  
      return intraday_seasonality
  
file_path: finmarketpy/finmarketpy/economics/seasonality.py
imports: import numpy
  import pandas
  from findatapy.timeseries import Calculations, Filter
  from findatapy.util.commonman import CommonMan
  from findatapy.util.configmanager import ConfigManager
  from findatapy.util.loggermanager import LoggerManager
label_desc: Use image node_id 2 for calling the Seasonality obj's underlying member method code with example usage: obj.time_of_day_seasonality(data_frame, years, seconds) and returns: intraday_seasonality, calculations, calculations