nutonomy / nuscenes-devkit

The devkit of the nuScenes dataset.
https://www.nuScenes.org
Other
2.24k stars 617 forks source link

Update mot.py #908

Closed MarcSo closed 1 year ago

MarcSo commented 1 year ago

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

whyekit-motional commented 1 year ago

@MarcSo your PR is failing CI/CD with this error:


  File "/opt/conda/envs/nuscenes/lib/python3.6/site-packages/pandas/core/reshape/concat.py", line 284, in concat

    sort=sort,

  File "/opt/conda/envs/nuscenes/lib/python3.6/site-packages/pandas/core/reshape/concat.py", line 310, in __init__

    "first argument must be an iterable of pandas "

TypeError: first argument must be an iterable of pandas objects, you passed an object of type "DataFrame"

You could either fix that, or simply restrict the version of pandas in requirements_tracking.txt to < 2.0 in your PR