Created
April 3, 2019 09:08
-
-
Save spidezad/33b656c8eda59853adc56ebb6125fa19 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cells": [ | |
{ | |
"metadata": { | |
"trusted": true | |
}, | |
"cell_type": "code", | |
"source": "import pandas as pd\nimport numpy as np\nimport seaborn as sns\nimport os, sys, re, time, random\nimport matplotlib.pyplot as plt\n\nraw_data = {'g': random.sample(range(1,100),5), 'r': random.sample(range(1,100),5),'b': random.sample(range(1,100),5)}\ndf = pd.DataFrame(raw_data)\n\ndf.head()", | |
"execution_count": 1, | |
"outputs": [ | |
{ | |
"data": { | |
"text/html": "<div>\n<style scoped>\n .dataframe tbody tr th:only-of-type {\n vertical-align: middle;\n }\n\n .dataframe tbody tr th {\n vertical-align: top;\n }\n\n .dataframe thead th {\n text-align: right;\n }\n</style>\n<table border=\"1\" class=\"dataframe\">\n <thead>\n <tr style=\"text-align: right;\">\n <th></th>\n <th>b</th>\n <th>g</th>\n <th>r</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <th>0</th>\n <td>70</td>\n <td>78</td>\n <td>22</td>\n </tr>\n <tr>\n <th>1</th>\n <td>35</td>\n <td>83</td>\n <td>97</td>\n </tr>\n <tr>\n <th>2</th>\n <td>85</td>\n <td>40</td>\n <td>93</td>\n </tr>\n <tr>\n <th>3</th>\n <td>14</td>\n <td>91</td>\n <td>83</td>\n </tr>\n <tr>\n <th>4</th>\n <td>87</td>\n <td>24</td>\n <td>38</td>\n </tr>\n </tbody>\n</table>\n</div>", | |
"text/plain": " b g r\n0 70 78 22\n1 35 83 97\n2 85 40 93\n3 14 91 83\n4 87 24 38" | |
}, | |
"execution_count": 1, | |
"metadata": {}, | |
"output_type": "execute_result" | |
} | |
] | |
} | |
], | |
"metadata": { | |
"kernelspec": { | |
"name": "python3", | |
"display_name": "Python 3", | |
"language": "python" | |
}, | |
"language_info": { | |
"name": "python", | |
"version": "3.6.4", | |
"mimetype": "text/x-python", | |
"codemirror_mode": { | |
"name": "ipython", | |
"version": 3 | |
}, | |
"pygments_lexer": "ipython3", | |
"nbconvert_exporter": "python", | |
"file_extension": ".py" | |
}, | |
"gist": { | |
"id": "25c499c2f4775d44086e87b62afe590c", | |
"data": { | |
"description": "", | |
"public": true | |
} | |
}, | |
"_draft": { | |
"nbviewer_url": "https://gist.github.com/25c499c2f4775d44086e87b62afe590c" | |
} | |
}, | |
"nbformat": 4, | |
"nbformat_minor": 2 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment