-
Notifications
You must be signed in to change notification settings - Fork 335
AttributeError: 'Series' object has no attribute 'iget' #123
Comments
Likely you’re using a newer version of Pandas than this supports. Which version are you using?
… On Jan 3, 2018, at 9:05 PM, Tom McNulty ***@***.***> wrote:
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.
***@***.*** bin]# ./analyzer.d start /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
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
0.22.0 I believe. |
Hi @TLMcNulty @astanway is correct it is the newer pandas version. The Etsy code is no longer functioning as the Python dependencies have started to move over the horizon.
And the webapp UI got a bit of an upgrade too. It is a lot more complex in configuration and getting to know and run, but you cannot rush timeseries :) Should you should just wish to just try and fix it in-situ with the Etsy version:
Replace your skyline/src/analyzer/algorithms.py with this one - https://gist.github.com/earthgecko/f1e5c4faeb9619a4b2dab0c3bc64a848 Here is the diff.
|
@earthgecko thanks a million, I'll happily dig through that project. |
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.
The text was updated successfully, but these errors were encountered: