Skip to content

AttributeError: 'Series' object has no attribute 'iteritems' #161

@swanghobart

Description

@swanghobart
from adtk.detector import OutlierDetector
from sklearn.neighbors import LocalOutlierFactor
outlier_detector = OutlierDetector(LocalOutlierFactor(contamination=0.05))
anomalies = outlier_detector.fit_detect(df)
plot(df, anomaly=anomalies, ts_linewidth=1, ts_markersize=3, anomaly_color='red', anomaly_alpha=0.3, curve_group='all');

AttributeError: 'Series' object has no attribute 'iteritems'

replace

for t, v in time_window_end_series.iteritems()

in *\adtk\data_data.py

into

for t, v in time_window_end_series.items()

That's all right.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions