Skip to content

Commit

Permalink
Update mot.py (nutonomy#908)
Browse files Browse the repository at this point in the history
* Update mot.py

The pandas package does not support the DataFrame.append(...) function any longer (https://pandas.pydata.org/docs/whatsnew/v2.0.0.html). It proposes to use pd.concat(...) instead

* Update mot.py

Fixed pandas call
  • Loading branch information
MarcSo authored and thomas-recogni committed Feb 2, 2024
1 parent c6fbe2b commit d3cc8b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python-sdk/nuscenes/eval/tracking/mot.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def merge_event_dataframes(dfs, update_frame_indices=True, update_oids=True, upd
copy['HId'] = copy['HId'].map(lambda x: hid_map[x], na_action='ignore')
infos['hid_map'] = hid_map

r = r.append(copy)
r = pd.concat((r, copy))
mapping_infos.append(infos)

if return_mappings:
Expand Down

0 comments on commit d3cc8b9

Please sign in to comment.