Skip to content

Commit

Permalink
Fix future warnings from Pandas
Browse files Browse the repository at this point in the history
  • Loading branch information
schroedtert committed Oct 12, 2023
1 parent 51364b9 commit 1df9642
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pedpy/methods/flow_calculator.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def compute_n_t(
)
)
)
.fillna(method="ffill")
.ffill()
.fillna(0)
)

Expand Down
2 changes: 1 addition & 1 deletion pedpy/methods/method_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,7 @@ def _compute_movememnt_adaptive_border(
df_movement = traj_data.data.copy(deep=True)

frame_infos = df_movement.groupby(by=ID_COL).agg(
frame_min=(FRAME_COL, np.min), frame_max=(FRAME_COL, np.max)
frame_min=(FRAME_COL, min), frame_max=(FRAME_COL, max)
)
df_movement = df_movement.merge(frame_infos, on=ID_COL)

Expand Down

0 comments on commit 1df9642

Please sign in to comment.