This repository was archived by the owner on Jul 15, 2024. It is now read-only.
File tree 1 file changed +28
-1
lines changed
1 file changed +28
-1
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"cells" : [
3
3
{
4
+ "attachments" : {},
4
5
"cell_type" : " markdown" ,
5
6
"metadata" : {},
6
7
"source" : [
9
10
]
10
11
},
11
12
{
13
+ "attachments" : {},
12
14
"cell_type" : " markdown" ,
13
15
"metadata" : {},
14
16
"source" : [
40
42
]
41
43
},
42
44
{
45
+ "attachments" : {},
43
46
"cell_type" : " markdown" ,
44
47
"metadata" : {},
45
48
"source" : [
80
83
]
81
84
},
82
85
{
86
+ "attachments" : {},
83
87
"cell_type" : " markdown" ,
84
88
"metadata" : {},
85
89
"source" : [
113
117
]
114
118
},
115
119
{
120
+ "attachments" : {},
116
121
"cell_type" : " markdown" ,
117
122
"metadata" : {},
118
123
"source" : [
141
146
]
142
147
},
143
148
{
149
+ "attachments" : {},
144
150
"cell_type" : " markdown" ,
145
151
"metadata" : {},
146
152
"source" : [
166
172
]
167
173
},
168
174
{
175
+ "attachments" : {},
169
176
"cell_type" : " markdown" ,
170
177
"metadata" : {},
171
178
"source" : [
184
191
]
185
192
},
186
193
{
194
+ "attachments" : {},
187
195
"cell_type" : " markdown" ,
188
196
"metadata" : {},
189
197
"source" : [
207
215
]
208
216
},
209
217
{
218
+ "attachments" : {},
210
219
"cell_type" : " markdown" ,
211
220
"metadata" : {},
212
221
"source" : [
219
228
"metadata" : {},
220
229
"outputs" : [],
221
230
"source" : [
222
- " top_continents = countries.continent.value_counts().limit(3).continent\n " ,
231
+ " top_continents = (\n " ,
232
+ " countries.continent.value_counts()\n " ,
233
+ " .order_by(ibis.desc(\" continent_count\" ))\n " ,
234
+ " .limit(3)\n " ,
235
+ " .continent\n " ,
236
+ " )\n " ,
223
237
" top_continents_filter = countries.continent.isin(top_continents)\n " ,
224
238
" expr = countries[top_continents_filter]\n " ,
225
239
" \n " ,
226
240
" expr.count()"
227
241
]
228
242
},
229
243
{
244
+ "attachments" : {},
230
245
"cell_type" : " markdown" ,
231
246
"metadata" : {},
232
247
"source" : [
243
258
]
244
259
},
245
260
{
261
+ "attachments" : {},
246
262
"cell_type" : " markdown" ,
247
263
"metadata" : {},
248
264
"source" : [
249
265
" Cool, huh? More on `topk` later."
250
266
]
251
267
},
252
268
{
269
+ "attachments" : {},
253
270
"cell_type" : " markdown" ,
254
271
"metadata" : {},
255
272
"source" : [
277
294
]
278
295
},
279
296
{
297
+ "attachments" : {},
280
298
"cell_type" : " markdown" ,
281
299
"metadata" : {},
282
300
"source" : [
294
312
]
295
313
},
296
314
{
315
+ "attachments" : {},
297
316
"cell_type" : " markdown" ,
298
317
"metadata" : {},
299
318
"source" : [
313
332
]
314
333
},
315
334
{
335
+ "attachments" : {},
316
336
"cell_type" : " markdown" ,
317
337
"metadata" : {},
318
338
"source" : [
330
350
]
331
351
},
332
352
{
353
+ "attachments" : {},
333
354
"cell_type" : " markdown" ,
334
355
"metadata" : {},
335
356
"source" : [
349
370
]
350
371
},
351
372
{
373
+ "attachments" : {},
352
374
"cell_type" : " markdown" ,
353
375
"metadata" : {},
354
376
"source" : [
366
388
]
367
389
},
368
390
{
391
+ "attachments" : {},
369
392
"cell_type" : " markdown" ,
370
393
"metadata" : {},
371
394
"source" : [
404
427
]
405
428
},
406
429
{
430
+ "attachments" : {},
407
431
"cell_type" : " markdown" ,
408
432
"metadata" : {},
409
433
"source" : [
432
456
]
433
457
},
434
458
{
459
+ "attachments" : {},
435
460
"cell_type" : " markdown" ,
436
461
"metadata" : {},
437
462
"source" : [
458
483
]
459
484
},
460
485
{
486
+ "attachments" : {},
461
487
"cell_type" : " markdown" ,
462
488
"metadata" : {},
463
489
"source" : [
483
509
]
484
510
},
485
511
{
512
+ "attachments" : {},
486
513
"cell_type" : " markdown" ,
487
514
"metadata" : {},
488
515
"source" : [
You can’t perform that action at this time.
0 commit comments