Skip to content

Commit 1df9642

Browse files
committed
Fix future warnings from Pandas
1 parent 51364b9 commit 1df9642

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

pedpy/methods/flow_calculator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def compute_n_t(
7373
)
7474
)
7575
)
76-
.fillna(method="ffill")
76+
.ffill()
7777
.fillna(0)
7878
)
7979

pedpy/methods/method_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,7 @@ def _compute_movememnt_adaptive_border(
805805
df_movement = traj_data.data.copy(deep=True)
806806

807807
frame_infos = df_movement.groupby(by=ID_COL).agg(
808-
frame_min=(FRAME_COL, np.min), frame_max=(FRAME_COL, np.max)
808+
frame_min=(FRAME_COL, min), frame_max=(FRAME_COL, max)
809809
)
810810
df_movement = df_movement.merge(frame_infos, on=ID_COL)
811811

0 commit comments

Comments
 (0)