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

Fix for pandas 1.5 #629

Merged
merged 5 commits into from
Dec 12, 2022
Merged

Fix for pandas 1.5 #629

merged 5 commits into from
Dec 12, 2022

Conversation

jpn--
Copy link
Member

@jpn-- jpn-- commented Dec 12, 2022

In pandas 1.5 there is a new FutureWarning emitted when a column is set via iloc from an array of different dtype. In a future pandas, the update will eventually be done in-place. This is actually the preferred outcome for ActivitySim and no "real" code changes are needed. But some of our tests treat unexpected warnings as errors. To address this, we mark this particular warning as expected.

Also, an upcoming Sharrow update will begin emitting CacheMissWarning when the compiler needs to be invoked. This too is completely normal in some circumstances (including in many tests) so it too is marked as an expected warning.

@jpn-- jpn-- merged commit 50ed965 into ActivitySim:develop Dec 12, 2022
@jpn-- jpn-- added this to the Phase 7 milestone Dec 13, 2022
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

Successfully merging this pull request may close these issues.

1 participant