cheind / py-motmetrics

:bar_chart: Benchmark multiple object trackers (MOT) in Python
MIT License
1.37k stars 258 forks source link

Keep the MultiIndex of the df even if empty #188

Closed michael-hoss closed 8 months ago

michael-hoss commented 8 months ago

I just faced this:

The proposed change should prevent this from happening while maintaining the intended behavior.

I am using pandas==2.1.2 and Python 3.10

cheind commented 8 months ago

Hey thanks for the PR. I'm running CI pipeline to ensure tests pass.

cheind commented 8 months ago

thanks, merged

michael-hoss commented 8 months ago

Awesome, thanks for the quick reaction