|
79 | 79 | },
|
80 | 80 | {
|
81 | 81 | "cell_type": "code",
|
82 |
| - "execution_count": 12, |
| 82 | + "execution_count": null, |
83 | 83 | "id": "17a9823a-4e85-41ff-b321-4f9821359821",
|
84 | 84 | "metadata": {
|
85 | 85 | "tags": []
|
|
144 | 144 | },
|
145 | 145 | {
|
146 | 146 | "cell_type": "code",
|
147 |
| - "execution_count": 8, |
| 147 | + "execution_count": null, |
148 | 148 | "id": "d1d80b96-2285-43ab-bbd6-090fd4a9c2d7",
|
149 | 149 | "metadata": {
|
150 | 150 | "tags": []
|
151 | 151 | },
|
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": [], |
170 | 153 | "source": [
|
171 | 154 | "%pip install pynytimes"
|
172 | 155 | ]
|
|
189 | 172 | },
|
190 | 173 | {
|
191 | 174 | "cell_type": "code",
|
192 |
| - "execution_count": 9, |
| 175 | + "execution_count": null, |
193 | 176 | "id": "dce57534-fe5d-45a4-bb97-f2df8dc3d9d6",
|
194 | 177 | "metadata": {
|
195 | 178 | "tags": []
|
|
202 | 185 | },
|
203 | 186 | {
|
204 | 187 | "cell_type": "code",
|
205 |
| - "execution_count": 13, |
| 188 | + "execution_count": null, |
206 | 189 | "id": "018a6dfa-9343-42b1-9014-165ae7507b0c",
|
207 | 190 | "metadata": {
|
208 | 191 | "tags": []
|
|
902 | 885 | "Let's load in the previously saved data:"
|
903 | 886 | ]
|
904 | 887 | },
|
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 |
| - }, |
917 | 888 | {
|
918 | 889 | "cell_type": "code",
|
919 | 890 | "execution_count": null,
|
|
923 | 894 | },
|
924 | 895 | "outputs": [],
|
925 | 896 | "source": [
|
926 |
| - "df = pd.read_pickle(\"../data/election2020_articles.pkl\")\n", |
| 897 | + "df = pd.read_csv(\"../data/election2020_articles.csv\")\n", |
927 | 898 | "df.head()"
|
928 | 899 | ]
|
929 | 900 | },
|
|
0 commit comments