Skip to content

Commit 9e9beaf

Browse files
committed
replace pickle with csv
1 parent 4d4a3f8 commit 9e9beaf

File tree

1 file changed

+6
-35
lines changed

1 file changed

+6
-35
lines changed

lessons/02_api.ipynb

Lines changed: 6 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
},
8080
{
8181
"cell_type": "code",
82-
"execution_count": 12,
82+
"execution_count": null,
8383
"id": "17a9823a-4e85-41ff-b321-4f9821359821",
8484
"metadata": {
8585
"tags": []
@@ -144,29 +144,12 @@
144144
},
145145
{
146146
"cell_type": "code",
147-
"execution_count": 8,
147+
"execution_count": null,
148148
"id": "d1d80b96-2285-43ab-bbd6-090fd4a9c2d7",
149149
"metadata": {
150150
"tags": []
151151
},
152-
"outputs": [
153-
{
154-
"name": "stdout",
155-
"output_type": "stream",
156-
"text": [
157-
"Collecting pynytimes\n",
158-
" Downloading pynytimes-0.10.0-py3-none-any.whl (20 kB)\n",
159-
"Requirement already satisfied: requests<3.0.0,>=2.10.0 in /Users/tomvannuenen/anaconda3/envs/dlab/lib/python3.10/site-packages (from pynytimes) (2.31.0)\n",
160-
"Requirement already satisfied: urllib3 in /Users/tomvannuenen/anaconda3/envs/dlab/lib/python3.10/site-packages (from pynytimes) (2.0.4)\n",
161-
"Requirement already satisfied: charset-normalizer<4,>=2 in /Users/tomvannuenen/anaconda3/envs/dlab/lib/python3.10/site-packages (from requests<3.0.0,>=2.10.0->pynytimes) (3.2.0)\n",
162-
"Requirement already satisfied: idna<4,>=2.5 in /Users/tomvannuenen/anaconda3/envs/dlab/lib/python3.10/site-packages (from requests<3.0.0,>=2.10.0->pynytimes) (3.4)\n",
163-
"Requirement already satisfied: certifi>=2017.4.17 in /Users/tomvannuenen/anaconda3/envs/dlab/lib/python3.10/site-packages (from requests<3.0.0,>=2.10.0->pynytimes) (2023.7.22)\n",
164-
"Installing collected packages: pynytimes\n",
165-
"Successfully installed pynytimes-0.10.0\n",
166-
"Note: you may need to restart the kernel to use updated packages.\n"
167-
]
168-
}
169-
],
152+
"outputs": [],
170153
"source": [
171154
"%pip install pynytimes"
172155
]
@@ -189,7 +172,7 @@
189172
},
190173
{
191174
"cell_type": "code",
192-
"execution_count": 9,
175+
"execution_count": null,
193176
"id": "dce57534-fe5d-45a4-bb97-f2df8dc3d9d6",
194177
"metadata": {
195178
"tags": []
@@ -202,7 +185,7 @@
202185
},
203186
{
204187
"cell_type": "code",
205-
"execution_count": 13,
188+
"execution_count": null,
206189
"id": "018a6dfa-9343-42b1-9014-165ae7507b0c",
207190
"metadata": {
208191
"tags": []
@@ -902,18 +885,6 @@
902885
"Let's load in the previously saved data:"
903886
]
904887
},
905-
{
906-
"cell_type": "code",
907-
"execution_count": null,
908-
"id": "29685d83-c90b-407e-be03-e76c67a6215c",
909-
"metadata": {
910-
"tags": []
911-
},
912-
"outputs": [],
913-
"source": [
914-
"pd.__version__"
915-
]
916-
},
917888
{
918889
"cell_type": "code",
919890
"execution_count": null,
@@ -923,7 +894,7 @@
923894
},
924895
"outputs": [],
925896
"source": [
926-
"df = pd.read_pickle(\"../data/election2020_articles.pkl\")\n",
897+
"df = pd.read_csv(\"../data/election2020_articles.csv\")\n",
927898
"df.head()"
928899
]
929900
},

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy