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

Pennsylvania state cleaner #48

Merged
merged 8 commits into from
Dec 5, 2023
Merged

Conversation

alankagiri
Copy link
Contributor

No description provided.

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@averyschoen averyschoen changed the base branch from main to dev November 16, 2023 20:35
Copy link
Collaborator

@averyschoen averyschoen left a comment

Choose a reason for hiding this comment

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

I was hoping to see more progress on the PA cleaner. Let me know if you forgot to push the most recent work on this branch. Let me know if you have questions about the feedback that I left. If you're struggling, I suggest taking a look at other branches.

utils/PA_EDA_Functions.py Outdated Show resolved Hide resolved
data/README.md Outdated Show resolved Hide resolved
utils/PennsylvaniaCleaner.py Outdated Show resolved Hide resolved
utils/PennsylvaniaCleaner.py Outdated Show resolved Hide resolved
utils/PennsylvaniaCleaner.py Outdated Show resolved Hide resolved
utils/PennsylvaniaCleaner.py Outdated Show resolved Hide resolved
utils/PennsylvaniaCleaner.py Outdated Show resolved Hide resolved
notebooks/PennsylvaniaCleaner.py Outdated Show resolved Hide resolved
utils/PA_Data_Web_Scraper.py Outdated Show resolved Hide resolved
utils/PA_Data_Web_Scraper.py Outdated Show resolved Hide resolved

years = np.arange(start_year, end_year + 1)
for year in years:
link = const.PA_MAIN_URL + const.PA_ZIPPED_URL + str(year) + ".zip"
Copy link
Contributor

Choose a reason for hiding this comment

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

An f-string might look more natural here.

link = f"{const.PA_MAIN_URL}{const.PA_ZIPPED_URL}{year}.zip"

utils/PA_EDA_Functions.py Outdated Show resolved Hide resolved
utils/PennsylvaniaCleaner.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@averyschoen averyschoen left a comment

Choose a reason for hiding this comment

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

see comments - there are some trends across functions that need to be cleaned up but nice progress!

from utils import pennsylvania_helper_functions as helper
from utils import clean
import uuid
# sys.path.append("/home/alankagiri/2023-fall-clinic-climate-cabinet")
Copy link
Collaborator

Choose a reason for hiding this comment

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

remove this -- try to use the base path that aicha is using in constants.

utils/pennsylvania.py Outdated Show resolved Hide resolved
utils/pennsylvania.py Outdated Show resolved Hide resolved
utils/pennsylvania.py Outdated Show resolved Hide resolved
utils/pennsylvania.py Outdated Show resolved Hide resolved
utils/pennsylvania.py Outdated Show resolved Hide resolved
utils/pennsylvania.py Outdated Show resolved Hide resolved
utils/pennsylvania.py Outdated Show resolved Hide resolved
utils/pennsylvania.py Outdated Show resolved Hide resolved
utils/pennsylvania.py Outdated Show resolved Hide resolved
utils/pennsylvania.py Outdated Show resolved Hide resolved
utils/pennsylvania.py Outdated Show resolved Hide resolved
@alankagiri alankagiri changed the base branch from dev to dev-f23 December 5, 2023 09:09
@alankagiri alankagiri merged commit b4b25a1 into dev-f23 Dec 5, 2023
@trevorspreadbury trevorspreadbury deleted the Pennsylvania_State_Cleaner branch December 5, 2023 15:26
trevorspreadbury added a commit that referenced this pull request Mar 28, 2024
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