├── LICENSE ├── README.md ├── Section 1 ├── 2008-election-results.csv ├── README.md ├── Visualizing the US Elections.ipynb ├── Wealth of Nations.ipynb ├── nations.json └── state_codes.csv ├── Section 2 ├── NetworkX - Creating and customizing LAN network.ipynb ├── NetworkX - Social Network.ipynb └── README.md ├── Section 3 ├── .ipynb_checkpoints │ └── Bokeh - NASA Moon Missions-checkpoint.ipynb ├── Bokeh - Intro.ipynb ├── Bokeh - NASA Moon Missions.ipynb ├── README.md ├── barplot.html ├── manned.csv └── weather │ ├── data │ ├── 2015_weather.csv │ └── london.csv │ └── main.py └── Section 4 ├── README.md ├── android1 └── app.py ├── android2 └── app.py ├── walmart1 └── app.py └── walmart2 └── app.py /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 Packt 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Data-visualization-projects-in-python 2 | Data visualization projects in python [video], published by Packt 3 | # Data Visualization in Python by Examples [Video] 4 | This is the code repository for [Data Visualization in Python by Examples [Video]](https://www.packtpub.com/virtualization-and-cloud/data-visualization-python-examples-video?utm_source=github&utm_medium=repository&utm_campaign=9781788838658), published by [Packt](https://www.packtpub.com/?utm_source=github). It contains all the supporting project files necessary to work through the video course from start to finish. 5 | ## About the Video Course 6 | Some popular Python data visualization tools and techniques today include Data Visualization in Jupyter Notebook with Bloomberg's bqplot library, Programming Graph and Network Data Visualizations, Data Visualizations with Bokeh (a Python library), and building interactive web visualizations using Dash. 7 | 8 | You will start by programming stunning interactive Data Visualizations using bqplot, an open source Python library developed by Bloomberg. Then you will learn how to programmatically create interactive network graphs and visualizations. You will then programmatically visualize data with the interactive Python visualization library, Bokeh. 9 | 10 | Finally, you will build interactive web visualizations of data using Python: you will choose a number of inputs your users can control, then use any Python graphing library to create plots based on those inputs. 11 | 12 |
\n", 95 | " | income | \n", 96 | "lifeExpectancy | \n", 97 | "name | \n", 98 | "population | \n", 99 | "region | \n", 100 | "
---|---|---|---|---|---|
0 | \n", 105 | "[[1800, 359.93], [1820, 359.93], [1913, 556.12... | \n", 106 | "[[1800, 26.98], [1940, 26.98], [1950, 29.22], ... | \n", 107 | "Angola | \n", 108 | "[[1800, 1567028], [1820, 1567028], [1940, 3738... | \n", 109 | "Sub-Saharan Africa | \n", 110 | "
1 | \n", 113 | "[[1800, 553.72], [1820, 553.72], [1913, 855.53... | \n", 114 | "[[1800, 31], [1944, 31], [1950, 36.53], [1951,... | \n", 115 | "Benin | \n", 116 | "[[1800, 636559], [1820, 636559], [1950, 167266... | \n", 117 | "Sub-Saharan Africa | \n", 118 | "
2 | \n", 121 | "[[1800, 407.36], [1820, 407.36], [1913, 629.4]... | \n", 122 | "[[1800, 33.6], [1945, 33.6], [1950, 46.82], [1... | \n", 123 | "Botswana | \n", 124 | "[[1800, 121000], [1904, 121000], [1911, 125000... | \n", 125 | "Sub-Saharan Africa | \n", 126 | "
3 | \n", 129 | "[[1800, 454.33], [1820, 454.33], [1913, 497.44... | \n", 130 | "[[1800, 29.2], [1945, 29.2], [1950, 32.89], [1... | \n", 131 | "Burkina Faso | \n", 132 | "[[1800, 1665421], [1820, 1665421], [1950, 4376... | \n", 133 | "Sub-Saharan Africa | \n", 134 | "
4 | \n", 137 | "[[1800, 447.59], [1820, 447.59], [1913, 353.82... | \n", 138 | "[[1800, 31.5], [1945, 31.5], [1950, 38.42], [1... | \n", 139 | "Burundi | \n", 140 | "[[1800, 899097], [1820, 899097], [1950, 236252... | \n", 141 | "Sub-Saharan Africa | \n", 142 | "
\\n\"+\n", 181 | " \"BokehJS does not appear to have successfully loaded. If loading BokehJS from CDN, this \\n\"+\n", 182 | " \"may be due to a slow or bad network connection. Possible fixes:\\n\"+\n", 183 | " \"
\\n\"+\n", 184 | " \"\\n\"+\n",
189 | " \"from bokeh.resources import INLINE\\n\"+\n",
190 | " \"output_notebook(resources=INLINE)\\n\"+\n",
191 | " \"
\\n\"+\n",
192 | " \"\\n\"+\n \"BokehJS does not appear to have successfully loaded. If loading BokehJS from CDN, this \\n\"+\n \"may be due to a slow or bad network connection. Possible fixes:\\n\"+\n \"
\\n\"+\n \"\\n\"+\n \"from bokeh.resources import INLINE\\n\"+\n \"output_notebook(resources=INLINE)\\n\"+\n \"
\\n\"+\n \"\n", 352 | " | Mission | \n", 353 | "Date | \n", 354 | "Landing | \n", 355 | "Crew Safety | \n", 356 | "
---|---|---|---|---|
0 | \n", 361 | "Apollo 1 | \n", 362 | "21-Feb-67 | \n", 363 | "0 | \n", 364 | "0 | \n", 365 | "
1 | \n", 368 | "Apollo 7 | \n", 369 | "11-Oct-68 | \n", 370 | "0 | \n", 371 | "1 | \n", 372 | "
2 | \n", 375 | "Apollo 8 | \n", 376 | "21-Dec-68 | \n", 377 | "0 | \n", 378 | "1 | \n", 379 | "
3 | \n", 382 | "Apollo 9 | \n", 383 | "03-Mar-69 | \n", 384 | "0 | \n", 385 | "1 | \n", 386 | "
4 | \n", 389 | "Apollo 10 | \n", 390 | "18-May-69 | \n", 391 | "0 | \n", 392 | "1 | \n", 393 | "
5 | \n", 396 | "Apollo 11 | \n", 397 | "16-Jul-69 | \n", 398 | "1 | \n", 399 | "1 | \n", 400 | "
6 | \n", 403 | "Apollo 12 | \n", 404 | "14-Nov-69 | \n", 405 | "1 | \n", 406 | "1 | \n", 407 | "
7 | \n", 410 | "Apollo 13 | \n", 411 | "11-Apr-70 | \n", 412 | "0 | \n", 413 | "1 | \n", 414 | "
8 | \n", 417 | "Apollo 14 | \n", 418 | "31-Jan-71 | \n", 419 | "1 | \n", 420 | "1 | \n", 421 | "
9 | \n", 424 | "Apollo 15 | \n", 425 | "26-Jul-71 | \n", 426 | "1 | \n", 427 | "1 | \n", 428 | "
10 | \n", 431 | "Apollo 16 | \n", 432 | "16-Apr-72 | \n", 433 | "1 | \n", 434 | "1 | \n", 435 | "
11 | \n", 438 | "Apollo 17 | \n", 439 | "07-Dec-72 | \n", 440 | "1 | \n", 441 | "1 | \n", 442 | "