├── 210124_venn.ipynb ├── 210219_Medium_Squarify_Matplotlib.ipynb ├── 210630_Medium_ColabwithR.ipynb ├── 210630_Medium_Exercise_Visualization.ipynb ├── 220219_Medium_PoissonDistribution.ipynb ├── 220220_Medium_ChiSquareDistribution.ipynb ├── 220220_Medium_GeometricDistribution.ipynb ├── 220225_Medium_PDF.ipynb └── README.md /210124_venn.ipynb: -------------------------------------------------------------------------------- 1 | { 2 | "nbformat": 4, 3 | "nbformat_minor": 0, 4 | "metadata": { 5 | "colab": { 6 | "name": "Medium_210124Venn.ipynb", 7 | "provenance": [], 8 | "collapsed_sections": [] 9 | }, 10 | "kernelspec": { 11 | "name": "python3", 12 | "display_name": "Python 3" 13 | } 14 | }, 15 | "cells": [ 16 | { 17 | "cell_type": "markdown", 18 | "metadata": { 19 | "id": "m5FstR3BXWxM" 20 | }, 21 | "source": [ 22 | "# Venn Diagrams\r\n", 23 | "\r\n", 24 | "## Kate Wall\r\n", 25 | "## Last Edit: Jan. 24, 2021\r\n", 26 | "## How to easily make a Venn Diagrams from pandas DataFrames\r\n" 27 | ] 28 | }, 29 | { 30 | "cell_type": "code", 31 | "metadata": { 32 | "id": "mSJrqTGenhbe" 33 | }, 34 | "source": [ 35 | "from collections import Counter\n", 36 | "from matplotlib_venn import venn2, venn3\n", 37 | "import matplotlib.pyplot as plt\n", 38 | "import pandas as pd\n", 39 | "from IPython.core.display import HTML\n", 40 | "def multi_table(table_list): #for visualizing tables in the same cell\n", 41 | " return HTML(\n", 42 | " '
' + table._repr_html_() + ' | ' for table in table_list]) +\n", 44 | " '
\n",
85 | "\n",
98 | "
| \n",
137 | "\n",
150 | "
| \n",
181 | "\n",
194 | "
|
\n", 277 | " | people | \n", 278 | "name | \n", 279 | "
---|---|---|
0 | \n", 284 | "person1 | \n", 285 | "angela | \n", 286 | "
1 | \n", 289 | "person2 | \n", 290 | "nick | \n", 291 | "
2 | \n", 294 | "person3 | \n", 295 | "harry | \n", 296 | "
3 | \n", 299 | "person4 | \n", 300 | "nicole | \n", 301 | "
4 | \n", 304 | "person5 | \n", 305 | "britney | \n", 306 | "
5 | \n", 309 | "person6 | \n", 310 | "haseem | \n", 311 | "
6 | \n", 314 | "person7 | \n", 315 | "anna | \n", 316 | "
7 | \n", 319 | "person8 | \n", 320 | "sarah | \n", 321 | "
8 | \n", 324 | "person9 | \n", 325 | "taylor | \n", 326 | "
9 | \n", 329 | "person10 | \n", 330 | "jim | \n", 331 | "
\n",
418 | "\n",
431 | "
| \n",
478 | "\n",
491 | "
| \n",
528 | "\n",
541 | "
|
\n",
611 | "\n",
624 | "
| \n",
663 | "\n",
676 | "
| \n",
707 | "\n",
720 | "
|
\n",
1066 | "\n",
1079 | "
| \n",
1118 | "\n",
1131 | "
|
YearStart | YearEnd | LocationAbbr | LocationDesc | Datasource | Class | Topic | Question | Data_Value_Unit | Data_Value_Type | ⋯ | GeoLocation | ClassID | TopicID | QuestionID | DataValueTypeID | LocationID | StratificationCategory1 | Stratification1 | StratificationCategoryId1 | StratificationID1 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
<int> | <int> | <chr> | <chr> | <chr> | <chr> | <chr> | <chr> | <lgl> | <chr> | ⋯ | <chr> | <chr> | <chr> | <chr> | <chr> | <int> | <chr> | <chr> | <chr> | <chr> | |
1 | 2019 | 2019 | AL | Alabama | Youth Risk Behavior Surveillance System | Sugar Drinks | Sugar Drinks - Behavior | Percent of students in grades 9-12 who drank regular soda/pop at least one time per day | NA | Value | ⋯ | (32.840571122, -86.631860762) | SD | SD1 | Q058 | VALUE | 1 | Race/Ethnicity | Hispanic | RACE | RACEHIS |
2 | 2019 | 2019 | ID | Idaho | Youth Risk Behavior Surveillance System | Sugar Drinks | Sugar Drinks - Behavior | Percent of students in grades 9-12 who drank regular soda/pop at least one time per day | NA | Value | ⋯ | (43.682630005, -114.363730042) | SD | SD1 | Q058 | VALUE | 16 | Race/Ethnicity | Hispanic | RACE | RACEHIS |
3 | 2019 | 2019 | IA | Iowa | Youth Risk Behavior Surveillance System | Obesity / Weight Status | Obesity / Weight Status | Percent of students in grades 9-12 who have obesity | NA | Value | ⋯ | (42.469400913, -93.816490556) | OWS | OWS1 | Q038 | VALUE | 19 | Grade | 11th | GRADE | GRADE11 |
4 | 2019 | 2019 | LA | Louisiana | Youth Risk Behavior Surveillance System | Obesity / Weight Status | Obesity / Weight Status | Percent of students in grades 9-12 who have obesity | NA | Value | ⋯ | (31.312660644, -92.445680071) | OWS | OWS1 | Q038 | VALUE | 22 | Gender | Female | GEN | FEMALE |
5 | 2019 | 2019 | ME | Maine | Youth Risk Behavior Surveillance System | Obesity / Weight Status | Obesity / Weight Status | Percent of students in grades 9-12 who have an overweight classification | NA | Value | ⋯ | (45.254228894001, -68.985031336) | OWS | OWS1 | Q039 | VALUE | 23 | Race/Ethnicity | Hispanic | RACE | RACEHIS |
6 | 2019 | 2019 | MA | Massachusetts | Youth Risk Behavior Surveillance System | Obesity / Weight Status | Obesity / Weight Status | Percent of students in grades 9-12 who have an overweight classification | NA | Value | ⋯ | (42.27687047, -72.082690675) | OWS | OWS1 | Q039 | VALUE | 25 | Total | Total | OVR | OVERALL |
YearStart | YearEnd | LocationAbbr | LocationDesc | Datasource | Class | Topic | Question | Data_Value_Unit | Data_Value_Type | ⋯ | GeoLocation | ClassID | TopicID | QuestionID | DataValueTypeID | LocationID | StratificationCategory1 | Stratification1 | StratificationCategoryId1 | StratificationID1 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
<int> | <int> | <chr> | <chr> | <chr> | <chr> | <chr> | <chr> | <lgl> | <chr> | ⋯ | <chr> | <chr> | <chr> | <chr> | <chr> | <int> | <chr> | <chr> | <chr> | <chr> | |
1 | 2019 | 2019 | AL | Alabama | Youth Risk Behavior Surveillance System | Sugar Drinks | Sugar Drinks - Behavior | Percent of students in grades 9-12 who drank regular soda/pop at least one time per day | NA | Value | ⋯ | (32.840571122, -86.631860762) | SD | SD1 | Q058 | VALUE | 1 | Race/Ethnicity | Hispanic | RACE | RACEHIS |
2 | 2019 | 2019 | ID | Idaho | Youth Risk Behavior Surveillance System | Sugar Drinks | Sugar Drinks - Behavior | Percent of students in grades 9-12 who drank regular soda/pop at least one time per day | NA | Value | ⋯ | (43.682630005, -114.363730042) | SD | SD1 | Q058 | VALUE | 16 | Race/Ethnicity | Hispanic | RACE | RACEHIS |
3 | 2019 | 2019 | IA | Iowa | Youth Risk Behavior Surveillance System | Obesity / Weight Status | Obesity / Weight Status | Percent of students in grades 9-12 who have obesity | NA | Value | ⋯ | (42.469400913, -93.816490556) | OWS | OWS1 | Q038 | VALUE | 19 | Grade | 11th | GRADE | GRADE11 |
4 | 2019 | 2019 | LA | Louisiana | Youth Risk Behavior Surveillance System | Obesity / Weight Status | Obesity / Weight Status | Percent of students in grades 9-12 who have obesity | NA | Value | ⋯ | (31.312660644, -92.445680071) | OWS | OWS1 | Q038 | VALUE | 22 | Gender | Female | GEN | FEMALE |
5 | 2019 | 2019 | ME | Maine | Youth Risk Behavior Surveillance System | Obesity / Weight Status | Obesity / Weight Status | Percent of students in grades 9-12 who have an overweight classification | NA | Value | ⋯ | (45.254228894001, -68.985031336) | OWS | OWS1 | Q039 | VALUE | 23 | Race/Ethnicity | Hispanic | RACE | RACEHIS |
6 | 2019 | 2019 | MA | Massachusetts | Youth Risk Behavior Surveillance System | Obesity / Weight Status | Obesity / Weight Status | Percent of students in grades 9-12 who have an overweight classification | NA | Value | ⋯ | (42.27687047, -72.082690675) | OWS | OWS1 | Q039 | VALUE | 25 | Total | Total | OVR | OVERALL |