Browse Source

Dataframe has no appropriate timestamp -> Dataframe doesn`t contain timestamp

pull/1/head
rozetko 6 years ago
parent
commit
930a270a97
  1. 2
      analytics/analytics/utils/common.py

2
analytics/analytics/utils/common.py

@ -80,7 +80,7 @@ def timestamp_to_index(dataframe, timestamp):
if len(idx) > 0: if len(idx) > 0:
time_ind = int(idx[0]) time_ind = int(idx[0])
else: else:
raise ValueError('Dataframe has no appropriate timestamp {}'.format(timestamp)) raise ValueError('Dataframe doesn`t contain timestamp: {}'.format(timestamp))
return time_ind return time_ind
def find_peaks(data: Generator[float, None, None], size: int) -> Generator[float, None, None]: def find_peaks(data: Generator[float, None, None], size: int) -> Generator[float, None, None]:

Loading…
Cancel
Save