8000 Fixed data urls. Fixes #26 · palewire/first-python-notebook@28e91f0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 28e91f0

Browse files
committed
Fixed data urls. Fixes #26
1 parent 8e2f66f commit 28e91f0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/dataframe/index.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ They are:
1515
================================================= ===========
1616
Name Description
1717
================================================= ===========
18-
`committees.csv </_static/committees.csv>`_ Committees active in the election linked to propositions supported or opposed
19-
`contributions.csv </_static/contributions.csv>`_ Donors reported by each of the committees
18+
`committees.csv <https://first-python-notebook.readthedocs.io/_static/committees.csv>`_ Committees active in the election linked to propositions supported or opposed
19+
`contributions.csv <https://first-python-notebook.readthedocs.io/_static/contributions.csv>`_ Donors reported by each of the committees
2020
================================================= ===========
2121

2222
The data are structured in rows of comma-separated values. This is known as a `CSV file <https://en.wikipedia.org/wiki/Comma-separated_values>`_. It is the most common way you will find data published online.
@@ -33,7 +33,7 @@ Scroll down to the first open cell. There we will import the first CSV file list
3333

3434
.. code-block:: python
3535
36-
pd.read_csv("http://www.firstpythonnotebook.org/_static/committees.csv")
36+
pd.read_csv("https://first-python-notebook.readthedocs.io/_static/committees.csv")
3737
3838
.. warning::
3939

@@ -55,7 +55,7 @@ Go back to your initial cell and change it to this. Then rerun it.
5555

5656
.. code-block:: python
5757
58-
props = pd.read_csv("http://www.firstpythonnotebook.org/_static/committees.csv")
58+
props = pd.read_csv("https://first-python-notebook.readthedocs.io/_static/committees.csv")
5959
6060
After you run it, you shouldn't see anything. That's a good thing. It means our DataFrame has been saved under the name props, which we can now begin interacting with in the cells that follow.
6161

@@ -95,7 +95,7 @@ We'll start by using the read_csv method to import the second CSV file linked ab
9595

9696
.. code-block:: python
9797
98-
contribs = pd.read_csv("http://www.firstpythonnotebook.org/_static/contributions.csv")
98+
contribs = pd.read_csv("https://first-python-notebook.readthedocs.io/_static/contributions.csv")
9999
100100
Just as we did earlier, you can inspect the contents of this new file with the head method.
101101

0 commit comments

Comments
 (0)
0