Skip to content

Commit f267568

Browse files
committed
changed key names
1 parent 00446b2 commit f267568

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

05_feature_extraction/04_feature_extraction.ipynb

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
{
6161
"data": {
6262
"text/plain": [
63-
"{'key1': [1, 2, 3], 'key2': ['Monday', 'Tuesday', 'Wednesday']}"
63+
"{'numbers': [1, 2, 3], 'days': ['Monday', 'Tuesday', 'Wednesday']}"
6464
]
6565
},
6666
"execution_count": 2,
@@ -71,8 +71,8 @@
7171
"source": [
7272
"data1 = [1, 2, 3]\n",
7373
"data2 = ['Monday', 'Tuesday', 'Wednesday']\n",
74-
"my_dict = {'key1': data1,\n",
75-
" 'key2': data2}\n",
74+
"my_dict = {'numbers': data1,\n",
75+
" 'days': data2}\n",
7676
"my_dict"
7777
]
7878
},
@@ -85,7 +85,7 @@
8585
{
8686
"data": {
8787
"text/plain": [
88-
"[1, 2, 3]"
88+
"['Monday', 'Tuesday', 'Wednesday']"
8989
]
9090
},
9191
"execution_count": 3,
@@ -94,7 +94,7 @@
9494
}
9595
],
9696
"source": [
97-
"my_dict['key1']"
97+
"my_dict['days']"
9898
]
9999
},
100100
{
@@ -106,7 +106,7 @@
106106
{
107107
"data": {
108108
"text/plain": [
109-
"dict_keys(['key1', 'key2'])"
109+
"dict_keys(['numbers', 'days'])"
110110
]
111111
},
112112
"execution_count": 4,
@@ -153,8 +153,8 @@
153153
" <thead>\n",
154154
" <tr style=\"text-align: right;\">\n",
155155
" <th></th>\n",
156-
" <th>key1</th>\n",
157-
" <th>key2</th>\n",
156+
" <th>numbers</th>\n",
157+
" <th>days</th>\n",
158158
" </tr>\n",
159159
" </thead>\n",
160160
" <tbody>\n",
@@ -178,10 +178,10 @@
178178
"</div>"
179179
],
180180
"text/plain": [
181-
" key1 key2\n",
182-
"0 1 Monday\n",
183-
"1 2 Tuesday\n",
184-
"2 3 Wednesday"
181+
" numbers days\n",
182+
"0 1 Monday\n",
183+
"1 2 Tuesday\n",
184+
"2 3 Wednesday"
185185
]
186186
},
187187
"execution_count": 5,
@@ -211,10 +211,10 @@
211211
{
212212
"data": {
213213
"text/plain": [
214-
"0 1\n",
215-
"1 2\n",
216-
"2 3\n",
217-
"Name: key1, dtype: int64"
214+
"0 Monday\n",
215+
"1 Tuesday\n",
216+
"2 Wednesday\n",
217+
"Name: days, dtype: object"
218218
]
219219
},
220220
"execution_count": 6,
@@ -223,7 +223,7 @@
223223
}
224224
],
225225
"source": [
226-
"df['key1']"
226+
"df['days']"
227227
]
228228
},
229229
{

0 commit comments

Comments
 (0)