class_docstr: Does simple seasonality _calculations on data.
  
      
class_docstr_tok: ["Does","simple","seasonality","_calculations","on","data","."]
code: def _remove_seasonality(self, series, likely_period=None):
      from seasonal import fit_seasons, adjust_seasons
  
      # detrend and deseasonalize
      seasons, trend = fit_seasons(series, period=likely_period)
      adjusted = adjust_seasons(
          series, seasons=seasons, period=likely_period
      )
  
      if adjusted is None:
          return numpy.nan
  
      return adjusted[-1]
  
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 8 for calling the Seasonality obj's underlying member method code with example usage: obj._remove_seasonality(series, likely_period) and returns: adjusted, numpy