Skip to content

Commit 85df221

Browse files
committed
removing np import, re-running output
1 parent 098666f commit 85df221

File tree

1 file changed

+17
-18
lines changed

1 file changed

+17
-18
lines changed

word_count.ipynb

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"colab": {
66
"name": "Untitled25.ipynb",
77
"provenance": [],
8-
"authorship_tag": "ABX9TyOJqhnf6/YgfQMx6pfh6Fth",
8+
"authorship_tag": "ABX9TyMioTaWOtZ3dcIebltCT4IN",
99
"include_colab_link": true
1010
},
1111
"kernelspec": {
@@ -33,11 +33,10 @@
3333
"id": "kT4wyWuy2szs"
3434
},
3535
"source": [
36-
"import numpy as np\n",
3736
"import os\n",
3837
"import pandas as pd"
3938
],
40-
"execution_count": 7,
39+
"execution_count": 1,
4140
"outputs": []
4241
},
4342
{
@@ -47,7 +46,7 @@
4746
"base_uri": "https://localhost:8080/"
4847
},
4948
"id": "9J62Uh4H2Y9g",
50-
"outputId": "f4147b98-f72a-4ad2-8b5b-c3bb9f0c86db"
49+
"outputId": "0ac3147d-fdb4-4b9c-d96b-4da334730a93"
5150
},
5251
"source": [
5352
"!git clone https://github.com/icculp/Learning-Bitcoin-from-the-Command-Line.git"
@@ -58,12 +57,12 @@
5857
"output_type": "stream",
5958
"text": [
6059
"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"
6766
],
6867
"name": "stdout"
6968
}
@@ -103,7 +102,7 @@
103102
" # print(chapter, count)\n",
104103
" return pd.DataFrame(counts, columns=columns)"
105104
],
106-
"execution_count": 35,
105+
"execution_count": 3,
107106
"outputs": []
108107
},
109108
{
@@ -115,7 +114,7 @@
115114
"chapter_word_counts = count_words()\n",
116115
"chapter_word_counts.sort_values(by=['Chapter'], inplace=True)"
117116
],
118-
"execution_count": 38,
117+
"execution_count": 4,
119118
"outputs": []
120119
},
121120
{
@@ -126,13 +125,13 @@
126125
"height": 631
127126
},
128127
"id": "IPkG4oQJ6f1e",
129-
"outputId": "d057cf19-4d40-477a-964c-d2b6154e1e73"
128+
"outputId": "eea2f4b6-c3d3-48b5-dc62-97885c18d48d"
130129
},
131130
"source": [
132131
"from google.colab import data_table\n",
133132
"data_table.DataTable(chapter_word_counts, include_index=False)"
134133
],
135-
"execution_count": 39,
134+
"execution_count": 5,
136135
"outputs": [
137136
{
138137
"output_type": "execute_result",
@@ -229,7 +228,7 @@
229228
"metadata": {
230229
"tags": []
231230
},
232-
"execution_count": 39
231+
"execution_count": 5
233232
}
234233
]
235234
},
@@ -240,13 +239,13 @@
240239
"base_uri": "https://localhost:8080/"
241240
},
242241
"id": "4dFD792BBy0S",
243-
"outputId": "945da188-2d3b-4061-8f23-08e39e6f97f4"
242+
"outputId": "3c4dc4ff-ceb3-4ff5-d40d-c606eec83a8c"
244243
},
245244
"source": [
246245
"total_count = chapter_word_counts['Word Count'].sum()\n",
247246
"total_count"
248247
],
249-
"execution_count": 44,
248+
"execution_count": 6,
250249
"outputs": [
251250
{
252251
"output_type": "execute_result",
@@ -258,7 +257,7 @@
258257
"metadata": {
259258
"tags": []
260259
},
261-
"execution_count": 44
260+
"execution_count": 6
262261
}
263262
]
264263
}

0 commit comments

Comments
 (0)