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

CDC_Environmental_Health_Toxicology_Refresh #1097

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

SudhishaK
Copy link

@SudhishaK SudhishaK commented Oct 25, 2024

This PR includes 4 imports:

  1. CDC_PM25CensusTract
  2. CDC_OzoneCensusTract
  3. CDC_PM25County
  4. CDC_OzoneCounty

Copy link

google-cla bot commented Oct 25, 2024

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.

@SudhishaK SudhishaK changed the title CDC_OzoneCounty_Refresh CDC_Environmental_Health_Toxicology_Refresh Oct 25, 2024
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)

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")

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_)

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)

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.

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

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.

4 participants