-
-
Notifications
You must be signed in to change notification settings - Fork 30
FIX:116 redirected URLs in documentation to eliminate unnecessary redirects (qe-link-checker w. copilot) #389
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
Changes from 2 commits
71a734e
8369ae2
6f791f5
37daeed
4636062
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -270,7 +270,7 @@ df.loc[(df.cc + df.cg >= 80) & (df.POP <= 20000), ['country', 'year', 'POP']] | |
|
|
||
| **Application: Subsetting Dataframe** | ||
|
|
||
| Real-world datasets can be [enormous](https://developers.google.com/machine-learning/data-prep/construct/collect/data-size-quality). | ||
| Real-world datasets can be [enormous](https://developers.google.com/machine-learning/crash-course/overfitting). | ||
|
|
||
| It is sometimes desirable to work with a subset of data to enhance computational efficiency and reduce redundancy. | ||
|
|
||
|
|
@@ -499,9 +499,9 @@ plt.show() | |
|
|
||
| Python makes it straightforward to query online databases programmatically. | ||
|
|
||
| An important database for economists is [FRED](https://research.stlouisfed.org/fred2/) --- a vast collection of time series data maintained by the St. Louis Fed. | ||
| An important database for economists is [FRED](https://fred.stlouisfed.org/) --- a vast collection of time series data maintained by the St. Louis Fed. | ||
|
|
||
| For example, suppose that we are interested in the [unemployment rate](https://research.stlouisfed.org/fred2/series/UNRATE). | ||
| For example, suppose that we are interested in the [unemployment rate](https://fred.stlouisfed.org/series/UNRATE). | ||
|
|
||
| (To download the data as a csv, click on the top right `Download` and select the `CSV (data)` option). | ||
|
|
||
|
|
@@ -516,7 +516,7 @@ We start with a relatively low-level method and then return to pandas. | |
| ```{index} single: Python; requests | ||
| ``` | ||
|
|
||
| One option is to use [requests](https://requests.readthedocs.io/en/master/), a standard Python library for requesting data over the Internet. | ||
| One option is to use [requests](https://requests.readthedocs.io/en/latest/), a standard Python library for requesting data over the Internet. | ||
|
|
||
| To begin, try the following code on your computer | ||
|
|
||
|
|
@@ -534,9 +534,9 @@ If you do get an error, then there are two likely causes | |
| In the second case, you can either | ||
|
|
||
| * switch to another machine | ||
| * solve your proxy problem by reading [the documentation](https://requests.readthedocs.io/en/master/) | ||
| * solve your proxy problem by reading [the documentation](https://requests.readthedocs.io/en/latest/) | ||
|
|
||
| Assuming that all is working, you can now proceed to use the `source` object returned by the call `requests.get('https://research.stlouisfed.org/fred2/series/UNRATE/downloaddata/UNRATE.csv')` | ||
| Assuming that all is working, you can now proceed to use the `source` object returned by the call `requests.get('https://fred.stlouisfed.org/series/UNRATE/downloaddata/UNRATE.csv')` | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @copilot can you please open an issue with this link as this simple update isn't working.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @copilot can you please revert this one change, once the issue is raised.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't have the capability to open GitHub issues directly. Could you please open the issue yourself, or would you like me to document the FRED URL problem in a comment within the code for tracking? The current FRED URLs in pandas.md appear to work correctly, but if there's a specific issue you've encountered, I can help investigate or create a code comment to track it.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've reverted the FRED URL changes back to the original |
||
|
|
||
| ```{code-cell} ipython3 | ||
| url = 'https://fred.stlouisfed.org/graph/fredgraph.csv?bgcolor=%23e1e9f0&chart_type=line&drp=0&fo=open%20sans&graph_bgcolor=%23ffffff&height=450&mode=fred&recession_bars=on&txtcolor=%23444444&ts=12&tts=12&width=1318&nt=0&thu=0&trc=0&show_legend=yes&show_axis_titles=yes&show_tooltip=yes&id=UNRATE&scale=left&cosd=1948-01-01&coed=2024-06-01&line_color=%234572a7&link_values=false&line_style=solid&mark_type=none&mw=3&lw=2&ost=-99999&oet=99999&mma=0&fml=a&fq=Monthly&fam=avg&fgst=lin&fgsnd=2020-02-01&line_index=1&transformation=lin&vintage_date=2024-07-29&revision_date=2024-07-29&nd=1948-01-01' | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.