|
5 | 5 | "colab": { |
6 | 6 | "name": "Untitled25.ipynb", |
7 | 7 | "provenance": [], |
8 | | - "authorship_tag": "ABX9TyOJqhnf6/YgfQMx6pfh6Fth", |
| 8 | + "authorship_tag": "ABX9TyMioTaWOtZ3dcIebltCT4IN", |
9 | 9 | "include_colab_link": true |
10 | 10 | }, |
11 | 11 | "kernelspec": { |
|
33 | 33 | "id": "kT4wyWuy2szs" |
34 | 34 | }, |
35 | 35 | "source": [ |
36 | | - "import numpy as np\n", |
37 | 36 | "import os\n", |
38 | 37 | "import pandas as pd" |
39 | 38 | ], |
40 | | - "execution_count": 7, |
| 39 | + "execution_count": 1, |
41 | 40 | "outputs": [] |
42 | 41 | }, |
43 | 42 | { |
|
47 | 46 | "base_uri": "https://localhost:8080/" |
48 | 47 | }, |
49 | 48 | "id": "9J62Uh4H2Y9g", |
50 | | - "outputId": "f4147b98-f72a-4ad2-8b5b-c3bb9f0c86db" |
| 49 | + "outputId": "0ac3147d-fdb4-4b9c-d96b-4da334730a93" |
51 | 50 | }, |
52 | 51 | "source": [ |
53 | 52 | "!git clone https://github.com/icculp/Learning-Bitcoin-from-the-Command-Line.git" |
|
58 | 57 | "output_type": "stream", |
59 | 58 | "text": [ |
60 | 59 | "Cloning into 'Learning-Bitcoin-from-the-Command-Line'...\n", |
61 | | - "remote: Enumerating objects: 6634, done.\u001b[K\n", |
62 | | - "remote: Counting objects: 100% (238/238), done.\u001b[K\n", |
63 | | - "remote: Compressing objects: 100% (196/196), done.\u001b[K\n", |
64 | | - "remote: Total 6634 (delta 109), reused 82 (delta 42), pack-reused 6396\u001b[K\n", |
65 | | - "Receiving objects: 100% (6634/6634), 7.53 MiB | 13.87 MiB/s, done.\n", |
66 | | - "Resolving deltas: 100% (4068/4068), done.\n" |
| 60 | + "remote: Enumerating objects: 6637, done.\u001b[K\n", |
| 61 | + "remote: Counting objects: 100% (241/241), done.\u001b[K\n", |
| 62 | + "remote: Compressing objects: 100% (199/199), done.\u001b[K\n", |
| 63 | + "remote: Total 6637 (delta 110), reused 82 (delta 42), pack-reused 6396\u001b[K\n", |
| 64 | + "Receiving objects: 100% (6637/6637), 7.53 MiB | 18.46 MiB/s, done.\n", |
| 65 | + "Resolving deltas: 100% (4069/4069), done.\n" |
67 | 66 | ], |
68 | 67 | "name": "stdout" |
69 | 68 | } |
|
103 | 102 | " # print(chapter, count)\n", |
104 | 103 | " return pd.DataFrame(counts, columns=columns)" |
105 | 104 | ], |
106 | | - "execution_count": 35, |
| 105 | + "execution_count": 3, |
107 | 106 | "outputs": [] |
108 | 107 | }, |
109 | 108 | { |
|
115 | 114 | "chapter_word_counts = count_words()\n", |
116 | 115 | "chapter_word_counts.sort_values(by=['Chapter'], inplace=True)" |
117 | 116 | ], |
118 | | - "execution_count": 38, |
| 117 | + "execution_count": 4, |
119 | 118 | "outputs": [] |
120 | 119 | }, |
121 | 120 | { |
|
126 | 125 | "height": 631 |
127 | 126 | }, |
128 | 127 | "id": "IPkG4oQJ6f1e", |
129 | | - "outputId": "d057cf19-4d40-477a-964c-d2b6154e1e73" |
| 128 | + "outputId": "eea2f4b6-c3d3-48b5-dc62-97885c18d48d" |
130 | 129 | }, |
131 | 130 | "source": [ |
132 | 131 | "from google.colab import data_table\n", |
133 | 132 | "data_table.DataTable(chapter_word_counts, include_index=False)" |
134 | 133 | ], |
135 | | - "execution_count": 39, |
| 134 | + "execution_count": 5, |
136 | 135 | "outputs": [ |
137 | 136 | { |
138 | 137 | "output_type": "execute_result", |
|
229 | 228 | "metadata": { |
230 | 229 | "tags": [] |
231 | 230 | }, |
232 | | - "execution_count": 39 |
| 231 | + "execution_count": 5 |
233 | 232 | } |
234 | 233 | ] |
235 | 234 | }, |
|
240 | 239 | "base_uri": "https://localhost:8080/" |
241 | 240 | }, |
242 | 241 | "id": "4dFD792BBy0S", |
243 | | - "outputId": "945da188-2d3b-4061-8f23-08e39e6f97f4" |
| 242 | + "outputId": "3c4dc4ff-ceb3-4ff5-d40d-c606eec83a8c" |
244 | 243 | }, |
245 | 244 | "source": [ |
246 | 245 | "total_count = chapter_word_counts['Word Count'].sum()\n", |
247 | 246 | "total_count" |
248 | 247 | ], |
249 | | - "execution_count": 44, |
| 248 | + "execution_count": 6, |
250 | 249 | "outputs": [ |
251 | 250 | { |
252 | 251 | "output_type": "execute_result", |
|
258 | 257 | "metadata": { |
259 | 258 | "tags": [] |
260 | 259 | }, |
261 | | - "execution_count": 44 |
| 260 | + "execution_count": 6 |
262 | 261 | } |
263 | 262 | ] |
264 | 263 | } |
|
0 commit comments