|
5 | 5 | "colab": { |
6 | 6 | "name": "00_intro_bokeh.ipynb", |
7 | 7 | "provenance": [], |
8 | | - "authorship_tag": "ABX9TyNcu2EygP209721OnpTmofI" |
| 8 | + "authorship_tag": "ABX9TyNcu2EygP209721OnpTmofI", |
| 9 | + "include_colab_link": true |
9 | 10 | }, |
10 | 11 | "kernelspec": { |
11 | 12 | "name": "python3", |
12 | 13 | "display_name": "Python 3" |
13 | 14 | } |
14 | 15 | }, |
15 | 16 | "cells": [ |
| 17 | + { |
| 18 | + "cell_type": "markdown", |
| 19 | + "metadata": { |
| 20 | + "id": "view-in-github", |
| 21 | + "colab_type": "text" |
| 22 | + }, |
| 23 | + "source": [ |
| 24 | + "<a href=\"https://colab.research.google.com/github/gumdropsteve/intro_to_python/blob/main/day_13/00_intro_bokeh.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>" |
| 25 | + ] |
| 26 | + }, |
16 | 27 | { |
17 | 28 | "cell_type": "markdown", |
18 | 29 | "metadata": { |
|
55 | 66 | "# show the results\r\n", |
56 | 67 | "show(p)" |
57 | 68 | ], |
58 | | - "execution_count": 1, |
| 69 | + "execution_count": null, |
59 | 70 | "outputs": [] |
60 | 71 | }, |
61 | 72 | { |
|
77 | 88 | "from bokeh.io import output_notebook, show\r\n", |
78 | 89 | "output_notebook()" |
79 | 90 | ], |
80 | | - "execution_count": 2, |
| 91 | + "execution_count": null, |
81 | 92 | "outputs": [] |
82 | 93 | }, |
83 | 94 | { |
|
109 | 120 | "# show the results\r\n", |
110 | 121 | "show(p)" |
111 | 122 | ], |
112 | | - "execution_count": 3, |
| 123 | + "execution_count": null, |
113 | 124 | "outputs": [ |
114 | 125 | { |
115 | 126 | "output_type": "display_data", |
|
502 | 513 | "\r\n", |
503 | 514 | "df.tail(3)" |
504 | 515 | ], |
505 | | - "execution_count": 5, |
| 516 | + "execution_count": null, |
506 | 517 | "outputs": [ |
507 | 518 | { |
508 | 519 | "output_type": "execute_result", |
|
613 | 624 | "# show the results\r\n", |
614 | 625 | "show(p)" |
615 | 626 | ], |
616 | | - "execution_count": 6, |
| 627 | + "execution_count": null, |
617 | 628 | "outputs": [ |
618 | 629 | { |
619 | 630 | "output_type": "display_data", |
|
1015 | 1026 | "# show the results\r\n", |
1016 | 1027 | "show(p)" |
1017 | 1028 | ], |
1018 | | - "execution_count": 7, |
| 1029 | + "execution_count": null, |
1019 | 1030 | "outputs": [ |
1020 | 1031 | { |
1021 | 1032 | "output_type": "display_data", |
|
1407 | 1418 | "# show the results\r\n", |
1408 | 1419 | "show(p)" |
1409 | 1420 | ], |
1410 | | - "execution_count": 14, |
| 1421 | + "execution_count": null, |
1411 | 1422 | "outputs": [ |
1412 | 1423 | { |
1413 | 1424 | "output_type": "display_data", |
|
1786 | 1797 | "# note, we were writing the chart to lines.html with each run with output_file()\r\n", |
1787 | 1798 | "!ls" |
1788 | 1799 | ], |
1789 | | - "execution_count": 12, |
| 1800 | + "execution_count": null, |
1790 | 1801 | "outputs": [ |
1791 | 1802 | { |
1792 | 1803 | "output_type": "stream", |
|
1833 | 1844 | "# show the results\r\n", |
1834 | 1845 | "show(p)" |
1835 | 1846 | ], |
1836 | | - "execution_count": 17, |
| 1847 | + "execution_count": null, |
1837 | 1848 | "outputs": [ |
1838 | 1849 | { |
1839 | 1850 | "output_type": "display_data", |
|
2212 | 2223 | "# well what is the datatype in the ds column?\r\n", |
2213 | 2224 | "df['ds']" |
2214 | 2225 | ], |
2215 | | - "execution_count": 18, |
| 2226 | + "execution_count": null, |
2216 | 2227 | "outputs": [ |
2217 | 2228 | { |
2218 | 2229 | "output_type": "execute_result", |
|
2252 | 2263 | "# let's try converting it to datetime -> https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.to_datetime.html\r\n", |
2253 | 2264 | "pd.to_datetime(df['ds'])" |
2254 | 2265 | ], |
2255 | | - "execution_count": 19, |
| 2266 | + "execution_count": null, |
2256 | 2267 | "outputs": [ |
2257 | 2268 | { |
2258 | 2269 | "output_type": "execute_result", |
|
2306 | 2317 | "# show the results\r\n", |
2307 | 2318 | "show(p)" |
2308 | 2319 | ], |
2309 | | - "execution_count": 20, |
| 2320 | + "execution_count": null, |
2310 | 2321 | "outputs": [ |
2311 | 2322 | { |
2312 | 2323 | "output_type": "display_data", |
|
2699 | 2710 | "# show the results\r\n", |
2700 | 2711 | "show(p)" |
2701 | 2712 | ], |
2702 | | - "execution_count": 21, |
| 2713 | + "execution_count": null, |
2703 | 2714 | "outputs": [ |
2704 | 2715 | { |
2705 | 2716 | "output_type": "display_data", |
|
3088 | 3099 | "# show the results\r\n", |
3089 | 3100 | "show(p)" |
3090 | 3101 | ], |
3091 | | - "execution_count": 22, |
| 3102 | + "execution_count": null, |
3092 | 3103 | "outputs": [ |
3093 | 3104 | { |
3094 | 3105 | "output_type": "display_data", |
|
3493 | 3504 | "# show the results\r\n", |
3494 | 3505 | "show(p)" |
3495 | 3506 | ], |
3496 | | - "execution_count": 25, |
| 3507 | + "execution_count": null, |
3497 | 3508 | "outputs": [ |
3498 | 3509 | { |
3499 | 3510 | "output_type": "display_data", |
|
3898 | 3909 | "# show the results\r\n", |
3899 | 3910 | "show(p)" |
3900 | 3911 | ], |
3901 | | - "execution_count": 26, |
| 3912 | + "execution_count": null, |
3902 | 3913 | "outputs": [ |
3903 | 3914 | { |
3904 | 3915 | "output_type": "display_data", |
|
4295 | 4306 | "# show the results\r\n", |
4296 | 4307 | "show(p)" |
4297 | 4308 | ], |
4298 | | - "execution_count": 29, |
| 4309 | + "execution_count": null, |
4299 | 4310 | "outputs": [ |
4300 | 4311 | { |
4301 | 4312 | "output_type": "display_data", |
|
4708 | 4719 | "# show the results\r\n", |
4709 | 4720 | "show(p)" |
4710 | 4721 | ], |
4711 | | - "execution_count": 30, |
| 4722 | + "execution_count": null, |
4712 | 4723 | "outputs": [ |
4713 | 4724 | { |
4714 | 4725 | "output_type": "display_data", |
|
5118 | 5129 | "# show the results\r\n", |
5119 | 5130 | "show(p)\r\n" |
5120 | 5131 | ], |
5121 | | - "execution_count": 31, |
| 5132 | + "execution_count": null, |
5122 | 5133 | "outputs": [ |
5123 | 5134 | { |
5124 | 5135 | "output_type": "display_data", |
|
5519 | 5530 | "# show the results\r\n", |
5520 | 5531 | "show(p)\r\n" |
5521 | 5532 | ], |
5522 | | - "execution_count": 33, |
| 5533 | + "execution_count": null, |
5523 | 5534 | "outputs": [ |
5524 | 5535 | { |
5525 | 5536 | "output_type": "display_data", |
|
0 commit comments