Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A BUG caused by pandas.Index.map #179

Open
zhaozp15 opened this issue Aug 2, 2023 · 0 comments
Open

A BUG caused by pandas.Index.map #179

zhaozp15 opened this issue Aug 2, 2023 · 0 comments

Comments

@zhaozp15
Copy link

zhaozp15 commented Aug 2, 2023

In MOTAccumulator.merge_event_dataframes (Line 443), we use copy.index.map to update index.
When copy is an empty DataFrame, the size of copy.index is 0.
In this situation, copy.index.map will return an object of type Index rather than MultiIndex.

We can fix it by adding if copy.index.size != 0 before copy.index.map

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant