pyculiarity
pyculiarity copied to clipboard
how do I plot the output as shown on the official R implementation
The code worked however I am not sure how do I plot something like this from the results
from pyculiarity import detect_ts
import pandas as pd
twitter_example_data = pd.read_csv('raw_data.csv',
usecols=['timestamp', 'count'])
results = detect_ts(twitter_example_data,
max_anoms=0.02,
direction='both')
plt.plot(twitter_example_data['timestamp'], twitter_example_data['value'])
plt.plot(results['anoms'].anoms, 'o')