Skip to content

Remove in-place modification of data frames in Safegraph processing. #420

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

Merged
merged 1 commit into from
Nov 2, 2020

Conversation

sgsmob
Copy link
Contributor

@sgsmob sgsmob commented Nov 2, 2020

Fixes #418. aggregate() used to modify the DF in place, which caused a collision on key geo_id when the target date's frame was processed during the second time during the 7-day averaging.

@sgsmob sgsmob requested a review from chinandrew November 2, 2020 17:51
@chinandrew
Copy link
Contributor

How did this pass tests locally + GH checks when merging into main?

@sgsmob
Copy link
Contributor Author

sgsmob commented Nov 2, 2020

I don't know

@krivard
Copy link
Contributor

krivard commented Nov 2, 2020

@chinandrew Two reasons:

  1. Tests are run only for PRs into deploy-* branches, and only for the indicator named in the branch.
  2. When resolving conflicts in web, GitHub just straight-up merges into the PR's source branch without running checks.

@krivard krivard merged commit 7fe7294 into cmu-delphi:main Nov 2, 2020
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.

Safegraph is failing tests in main
3 participants