Open
Conversation
….use('default')
pd.set_option('display.mpl_style', 'default') is deprecated. Changed with plt.style.use('default')
The dataset in url seems updated, so the code in guide is modified so it is still relevant to the updated dataset
- Update the code to match updated datasets
- Changed resample from .resample('M').apply(np.median) to .resample('ME').apply('median') (same as means) for deprecation fixes
- Change pd.set_option('display.width', 5000) to pd.set_option('display.width', 5000) for deprecation fix
- Use requests.loc to replace requests['Incident Zip'] with value '00000' with np.nan for addressing pandas copy warnings
- Delete unique_zips.sort() because of error sorting array of strings and nan
- Add .dropna()
- Change .sort() to sort_values()
Wbaker7702
approved these changes
Jul 13, 2025
|
can i get a reviewer |
|
When will it be merged for the next update? |
|
I can't get it to recheck the merge status I don't know what is going on |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
Deprecation fixes and ensure relevance with updated dataset from external url
Changes
Change
pd.set_option('display.mpl_style', 'default')to useplt.style.use('default')in all chapters (cd86aa3) for deprecation fixesMatch chapter5.md (4c083be) and chapter6.md (193282e) code to ensure its continued relevance with the updated dataset in external url
Deprecation fixes in chapter6.md (193282e) and chapter7.md (603846b)