10 changed files with 58 additions and 12 deletions
@ -0,0 +1 @@
|
||||
from buckets.data_bucket import DataBucket |
@ -0,0 +1,13 @@
|
||||
import pandas as pd |
||||
|
||||
class DataBucket(object): |
||||
|
||||
data: pd.DataFrame |
||||
|
||||
def __init__(self): |
||||
self.data = pd.DataFrame([], columns=['timestamp', 'value']) |
||||
def receive_data(self, data: pd.DataFrame): |
||||
self.data = self.data.append(data, ignore_index=True) |
||||
|
||||
def drop_data(self, count: int): |
||||
self.data = self.data.iloc[count:] |
Loading…
Reference in new issue