Skip to content
This repository was archived by the owner on Dec 18, 2019. It is now read-only.
This repository was archived by the owner on Dec 18, 2019. It is now read-only.

AttributeError: 'Series' object has no attribute 'iget' #123

@TLMcNulty

Description

@TLMcNulty

When attempting to start analyzer with ./analyzer.d start the test run fails getting attributes on a series object.

Not expecting a response, going to detail my investigation here and hoped someone would post if they had any clue.

/usr/lib64/python2.7/site-packages/statsmodels/compat/pandas.py:56: FutureWarning: The pandas.core.datetools module is deprecated and will be removed in a future version. Please use the pandas.tseries module instead.
  from pandas.core import datetools
/opt/skyline/src/analyzer/algorithms.py:147: FutureWarning: pd.ewm_mean is deprecated for Series and will be removed in a future version, replace with
	Series.ewm(ignore_na=False,min_periods=0,adjust=True,com=15).mean()
  expAverage = pandas.stats.moments.ewma(series, com=15)
Algorithm test run failed.
Traceback (most recent call last):
  File "/opt/skyline/bin/../src/analyzer/analyzer-agent.py", line 47, in <module>
    ensemble = [globals()[algorithm](timeseries) for algorithm in settings.ALGORITHMS]
  File "/opt/skyline/src/analyzer/algorithms.py", line 149, in mean_subtraction_cumulation
    return abs(series.iget(-1)) > 3 * stdDev
  File "/usr/lib64/python2.7/site-packages/pandas/core/generic.py", line 3614, in __getattr__
    return object.__getattribute__(self, name)
AttributeError: 'Series' object has no attribute 'iget'
failed to start analyzer-agent```
  

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions