Skip to content

Commit

Permalink
Merge pull request #75 from timeflux/fix-deprecated-warning
Browse files Browse the repository at this point in the history
Use pd.concat instead of deprecated Dataframe.append
  • Loading branch information
mesca committed Sep 23, 2022
2 parents 51ae887 + 5cd170c commit f427aa7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion timeflux/nodes/dejitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def _interpolate(self):
[self._buffer, self.i.data], sort=True
) # append last sample be able to interpolate

if not self._buffer.index.is_monotonic:
if not self._buffer.index.is_monotonic_increasing:
self.logger.warning("Data index should be strictly monotonic")
self._buffer = self._make_monotonic(self._buffer)

Expand Down
2 changes: 1 addition & 1 deletion timeflux/nodes/epoch.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def update(self):
low = index - self._before
high = index + self._after
if self._buffer is not None:
if not self._buffer.index.is_monotonic:
if not self._buffer.index.is_monotonic_increasing:
self.logger.warning("Index must be monotonic. Skipping epoch.")
return
try:
Expand Down
2 changes: 1 addition & 1 deletion timeflux/nodes/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def update(self):
if self._buffer is None:
self._buffer = self.i.data
else:
self._buffer = self._buffer.append(self.i.data)
self._buffer = pd.concat([self._buffer, self.i.data])

# Make sure we have enough data
if len(self._buffer) >= self._length:
Expand Down

0 comments on commit f427aa7

Please sign in to comment.