-
Notifications
You must be signed in to change notification settings - Fork 113
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
CDC_Environmental_Health_Toxicology_Refresh #1097
base: master
Are you sure you want to change the base?
Conversation
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
scripts/us_cdc/environmental_health_toxicology/OzoneCensusTractPollution.tmcf
Show resolved
Hide resolved
f"Numbers of records found for the URL {url_new} is {record_count}" | ||
) | ||
url_new = f"{url_new}?$limit={record_count}&$offset=0" | ||
response = requests.get(url_new) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please implement retries using the retry
module.
Refer here: https://pypi.org/project/retry/
elif "County" in file and "Ozone" in file: | ||
data["statefips"] = data["statefips"].astype( | ||
str).str.zfill(2) | ||
print("checkingggg") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
print commands?
@@ -39,17 +39,17 @@ def test_clean_air_quality_data(self): | |||
print(module_dir_) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
print command?
with open(output_csv, 'r') as test: | ||
test_str: str = test.read() | ||
with open(expected_csv, 'r') as expected: | ||
expected_str: str = expected.read() | ||
self.assertEqual(test_str, expected_str) | ||
os.remove(output_csv) | ||
#os.remove(output_csv) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove this commented lines.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add test cases for all imports
This PR includes 4 imports: