Skip to content

2130 deal with large number of null values in nssp data #2141

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

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

minhkhul
Copy link
Contributor

@minhkhul minhkhul commented Apr 2, 2025

Description

Remove all null values from output csv when running nssp.
Adjust tests accordingly.

Changelog

  • remove rows with missing values
  • added test records where some or all signal data is NA for a county
  • added test case to assert no missing values in csv files created.

@minhkhul minhkhul linked an issue Apr 2, 2025 that may be closed by this pull request
@minhkhul minhkhul requested a review from aysim319 April 2, 2025 20:21
@melange396 melange396 self-requested a review April 2, 2025 20:25
@minhkhul minhkhul requested review from aysim319 and melange396 April 9, 2025 22:10
Copy link
Contributor

@melange396 melange396 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The core functionality of what you added is great!

A lot of the test stuff makes me cringe, but thats from the design that you had to inherit and build upon, so its not on you... Id love to change it all to use better paradigms, but its probably not worth it and its definitely outside the scope of this PR. I have a few suggestions on how to tighten it up though.

"""

caplog.set_level(logging.WARNING)
run_as_module_empty()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if you put caplog before run_as_module_empty in the method arguments list, i dont think you will need to have the encapsulated definition of _run_as_module_empty (and then you wont need to execute it explicitly here)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@minhkhul and i had a chat... this suggestion doesnt work, possibly because of how fixtures behave in general or how we are using them.

@minhkhul minhkhul requested a review from melange396 April 25, 2025 17:53
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.

Deal with large number of null values in NSSP data
3 participants