1
0

Split the data into more a more (computer) readable file

This commit is contained in:
Silver-T 2018-05-02 16:28:53 +10:00
parent e0e869183a
commit 3ce5dc5e95
2 changed files with 164 additions and 434 deletions

View File

@ -9,16 +9,27 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 2,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Using matplotlib backend: MacOSX\n",
"Using matplotlib backend: TkAgg\n",
"Populating the interactive namespace from numpy and matplotlib\n"
]
},
{
"ename": "ImportError",
"evalue": "No module named 'seaborn'",
"output_type": "error",
"traceback": [
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
"\u001b[0;31mImportError\u001b[0m Traceback (most recent call last)",
"\u001b[0;32m<ipython-input-2-ad52641fb291>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m()\u001b[0m\n\u001b[1;32m 2\u001b[0m \u001b[0mget_ipython\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mmagic\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m'matplotlib inline'\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 3\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mpandas\u001b[0m \u001b[0;32mas\u001b[0m \u001b[0mpd\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m----> 4\u001b[0;31m \u001b[0;32mimport\u001b[0m \u001b[0mseaborn\u001b[0m \u001b[0;32mas\u001b[0m \u001b[0msn\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 5\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mnumpy\u001b[0m \u001b[0;32mas\u001b[0m \u001b[0mnp\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 6\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mmatplotlib\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mpyplot\u001b[0m \u001b[0;32mas\u001b[0m \u001b[0mplt\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
"\u001b[0;31mImportError\u001b[0m: No module named 'seaborn'"
]
}
],
"source": [
@ -35,196 +46,19 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 1,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<style type=\"text/css\" >\n",
" #T_60af3fba_4c3b_11e8_903f_32001d384000row0_col0 {\n",
" background-color: #fc7f00;\n",
" } #T_60af3fba_4c3b_11e8_903f_32001d384000row0_col1 {\n",
" background-color: #ffcc09;\n",
" } #T_60af3fba_4c3b_11e8_903f_32001d384000row0_col2 {\n",
" background-color: #e4ff7a;\n",
" } #T_60af3fba_4c3b_11e8_903f_32001d384000row0_col3 {\n",
" background-color: #e4ff7a;\n",
" } #T_60af3fba_4c3b_11e8_903f_32001d384000row0_col4 {\n",
" background-color: #ffb300;\n",
" } #T_60af3fba_4c3b_11e8_903f_32001d384000row0_col5 {\n",
" background-color: #ebf960;\n",
" } #T_60af3fba_4c3b_11e8_903f_32001d384000row0_col6 {\n",
" background-color: #edf75a;\n",
" } #T_60af3fba_4c3b_11e8_903f_32001d384000row1_col0 {\n",
" background-color: #ffe619;\n",
" } #T_60af3fba_4c3b_11e8_903f_32001d384000row1_col1 {\n",
" background-color: #fc7f00;\n",
" } #T_60af3fba_4c3b_11e8_903f_32001d384000row1_col2 {\n",
" background-color: #ffc606;\n",
" } #T_60af3fba_4c3b_11e8_903f_32001d384000row1_col3 {\n",
" background-color: #edf75a;\n",
" } #T_60af3fba_4c3b_11e8_903f_32001d384000row1_col4 {\n",
" background-color: #e4ff7a;\n",
" } #T_60af3fba_4c3b_11e8_903f_32001d384000row1_col5 {\n",
" background-color: #ffe417;\n",
" } #T_60af3fba_4c3b_11e8_903f_32001d384000row1_col6 {\n",
" background-color: #e8fb6b;\n",
" } #T_60af3fba_4c3b_11e8_903f_32001d384000row2_col0 {\n",
" background-color: #e4ff7a;\n",
" } #T_60af3fba_4c3b_11e8_903f_32001d384000row2_col1 {\n",
" background-color: #ffb600;\n",
" } #T_60af3fba_4c3b_11e8_903f_32001d384000row2_col2 {\n",
" background-color: #fc7f00;\n",
" } #T_60af3fba_4c3b_11e8_903f_32001d384000row2_col3 {\n",
" background-color: #f9ed30;\n",
" } #T_60af3fba_4c3b_11e8_903f_32001d384000row2_col4 {\n",
" background-color: #ffc907;\n",
" } #T_60af3fba_4c3b_11e8_903f_32001d384000row2_col5 {\n",
" background-color: #ffe317;\n",
" } #T_60af3fba_4c3b_11e8_903f_32001d384000row2_col6 {\n",
" background-color: #eafa66;\n",
" } #T_60af3fba_4c3b_11e8_903f_32001d384000row3_col0 {\n",
" background-color: #fbeb27;\n",
" } #T_60af3fba_4c3b_11e8_903f_32001d384000row3_col1 {\n",
" background-color: #ffc908;\n",
" } #T_60af3fba_4c3b_11e8_903f_32001d384000row3_col2 {\n",
" background-color: #ffd40e;\n",
" } #T_60af3fba_4c3b_11e8_903f_32001d384000row3_col3 {\n",
" background-color: #fc7f00;\n",
" } #T_60af3fba_4c3b_11e8_903f_32001d384000row3_col4 {\n",
" background-color: #ffb500;\n",
" } #T_60af3fba_4c3b_11e8_903f_32001d384000row3_col5 {\n",
" background-color: #e6fd72;\n",
" } #T_60af3fba_4c3b_11e8_903f_32001d384000row3_col6 {\n",
" background-color: #e4ff7a;\n",
" } #T_60af3fba_4c3b_11e8_903f_32001d384000row4_col0 {\n",
" background-color: #ffc102;\n",
" } #T_60af3fba_4c3b_11e8_903f_32001d384000row4_col1 {\n",
" background-color: #e4ff7a;\n",
" } #T_60af3fba_4c3b_11e8_903f_32001d384000row4_col2 {\n",
" background-color: #ffe216;\n",
" } #T_60af3fba_4c3b_11e8_903f_32001d384000row4_col3 {\n",
" background-color: #ffdf15;\n",
" } #T_60af3fba_4c3b_11e8_903f_32001d384000row4_col4 {\n",
" background-color: #fc7f00;\n",
" } #T_60af3fba_4c3b_11e8_903f_32001d384000row4_col5 {\n",
" background-color: #e4ff7a;\n",
" } #T_60af3fba_4c3b_11e8_903f_32001d384000row4_col6 {\n",
" background-color: #eff654;\n",
" } #T_60af3fba_4c3b_11e8_903f_32001d384000row5_col0 {\n",
" background-color: #ffdc13;\n",
" } #T_60af3fba_4c3b_11e8_903f_32001d384000row5_col1 {\n",
" background-color: #ffb400;\n",
" } #T_60af3fba_4c3b_11e8_903f_32001d384000row5_col2 {\n",
" background-color: #ffc203;\n",
" } #T_60af3fba_4c3b_11e8_903f_32001d384000row5_col3 {\n",
" background-color: #edf75a;\n",
" } #T_60af3fba_4c3b_11e8_903f_32001d384000row5_col4 {\n",
" background-color: #ffcc09;\n",
" } #T_60af3fba_4c3b_11e8_903f_32001d384000row5_col5 {\n",
" background-color: #fc7f00;\n",
" } #T_60af3fba_4c3b_11e8_903f_32001d384000row5_col6 {\n",
" background-color: #ff9d00;\n",
" } #T_60af3fba_4c3b_11e8_903f_32001d384000row6_col0 {\n",
" background-color: #ffd20c;\n",
" } #T_60af3fba_4c3b_11e8_903f_32001d384000row6_col1 {\n",
" background-color: #ffbf01;\n",
" } #T_60af3fba_4c3b_11e8_903f_32001d384000row6_col2 {\n",
" background-color: #ffd50e;\n",
" } #T_60af3fba_4c3b_11e8_903f_32001d384000row6_col3 {\n",
" background-color: #f3f245;\n",
" } #T_60af3fba_4c3b_11e8_903f_32001d384000row6_col4 {\n",
" background-color: #ffbb00;\n",
" } #T_60af3fba_4c3b_11e8_903f_32001d384000row6_col5 {\n",
" background-color: #fe9a00;\n",
" } #T_60af3fba_4c3b_11e8_903f_32001d384000row6_col6 {\n",
" background-color: #fc7f00;\n",
" }</style> \n",
"<table id=\"T_60af3fba_4c3b_11e8_903f_32001d384000\" > \n",
"<thead> <tr> \n",
" <th class=\"blank level0\" ></th> \n",
" <th class=\"col_heading level0 col0\" >ranking</th> \n",
" <th class=\"col_heading level0 col1\" >age</th> \n",
" <th class=\"col_heading level0 col2\" >points</th> \n",
" <th class=\"col_heading level0 col3\" >tournplayed</th> \n",
" <th class=\"col_heading level0 col4\" >born</th> \n",
" <th class=\"col_heading level0 col5\" >weight</th> \n",
" <th class=\"col_heading level0 col6\" >height</th> \n",
" </tr></thead> \n",
"<tbody> <tr> \n",
" <th id=\"T_60af3fba_4c3b_11e8_903f_32001d384000level0_row0\" class=\"row_heading level0 row0\" >ranking</th> \n",
" <td id=\"T_60af3fba_4c3b_11e8_903f_32001d384000row0_col0\" class=\"data row0 col0\" >1</td> \n",
" <td id=\"T_60af3fba_4c3b_11e8_903f_32001d384000row0_col1\" class=\"data row0 col1\" >-0.165935</td> \n",
" <td id=\"T_60af3fba_4c3b_11e8_903f_32001d384000row0_col2\" class=\"data row0 col2\" >-0.586707</td> \n",
" <td id=\"T_60af3fba_4c3b_11e8_903f_32001d384000row0_col3\" class=\"data row0 col3\" >-0.244073</td> \n",
" <td id=\"T_60af3fba_4c3b_11e8_903f_32001d384000row0_col4\" class=\"data row0 col4\" >0.17403</td> \n",
" <td id=\"T_60af3fba_4c3b_11e8_903f_32001d384000row0_col5\" class=\"data row0 col5\" >-0.0826093</td> \n",
" <td id=\"T_60af3fba_4c3b_11e8_903f_32001d384000row0_col6\" class=\"data row0 col6\" >0.0196139</td> \n",
" </tr> <tr> \n",
" <th id=\"T_60af3fba_4c3b_11e8_903f_32001d384000level0_row1\" class=\"row_heading level0 row1\" >age</th> \n",
" <td id=\"T_60af3fba_4c3b_11e8_903f_32001d384000row1_col0\" class=\"data row1 col0\" >-0.165935</td> \n",
" <td id=\"T_60af3fba_4c3b_11e8_903f_32001d384000row1_col1\" class=\"data row1 col1\" >1</td> \n",
" <td id=\"T_60af3fba_4c3b_11e8_903f_32001d384000row1_col2\" class=\"data row1 col2\" >0.121731</td> \n",
" <td id=\"T_60af3fba_4c3b_11e8_903f_32001d384000row1_col3\" class=\"data row1 col3\" >-0.140033</td> \n",
" <td id=\"T_60af3fba_4c3b_11e8_903f_32001d384000row1_col4\" class=\"data row1 col4\" >-0.994296</td> \n",
" <td id=\"T_60af3fba_4c3b_11e8_903f_32001d384000row1_col5\" class=\"data row1 col5\" >0.157223</td> \n",
" <td id=\"T_60af3fba_4c3b_11e8_903f_32001d384000row1_col6\" class=\"data row1 col6\" >-0.0282972</td> \n",
" </tr> <tr> \n",
" <th id=\"T_60af3fba_4c3b_11e8_903f_32001d384000level0_row2\" class=\"row_heading level0 row2\" >points</th> \n",
" <td id=\"T_60af3fba_4c3b_11e8_903f_32001d384000row2_col0\" class=\"data row2 col0\" >-0.586707</td> \n",
" <td id=\"T_60af3fba_4c3b_11e8_903f_32001d384000row2_col1\" class=\"data row2 col1\" >0.121731</td> \n",
" <td id=\"T_60af3fba_4c3b_11e8_903f_32001d384000row2_col2\" class=\"data row2 col2\" >1</td> \n",
" <td id=\"T_60af3fba_4c3b_11e8_903f_32001d384000row2_col3\" class=\"data row2 col3\" >-0.004905</td> \n",
" <td id=\"T_60af3fba_4c3b_11e8_903f_32001d384000row2_col4\" class=\"data row2 col4\" >-0.129971</td> \n",
" <td id=\"T_60af3fba_4c3b_11e8_903f_32001d384000row2_col5\" class=\"data row2 col5\" >0.159385</td> \n",
" <td id=\"T_60af3fba_4c3b_11e8_903f_32001d384000row2_col6\" class=\"data row2 col6\" >-0.0153843</td> \n",
" </tr> <tr> \n",
" <th id=\"T_60af3fba_4c3b_11e8_903f_32001d384000level0_row3\" class=\"row_heading level0 row3\" >tournplayed</th> \n",
" <td id=\"T_60af3fba_4c3b_11e8_903f_32001d384000row3_col0\" class=\"data row3 col0\" >-0.244073</td> \n",
" <td id=\"T_60af3fba_4c3b_11e8_903f_32001d384000row3_col1\" class=\"data row3 col1\" >-0.140033</td> \n",
" <td id=\"T_60af3fba_4c3b_11e8_903f_32001d384000row3_col2\" class=\"data row3 col2\" >-0.004905</td> \n",
" <td id=\"T_60af3fba_4c3b_11e8_903f_32001d384000row3_col3\" class=\"data row3 col3\" >1</td> \n",
" <td id=\"T_60af3fba_4c3b_11e8_903f_32001d384000row3_col4\" class=\"data row3 col4\" >0.13293</td> \n",
" <td id=\"T_60af3fba_4c3b_11e8_903f_32001d384000row3_col5\" class=\"data row3 col5\" >-0.139194</td> \n",
" <td id=\"T_60af3fba_4c3b_11e8_903f_32001d384000row3_col6\" class=\"data row3 col6\" >-0.0712482</td> \n",
" </tr> <tr> \n",
" <th id=\"T_60af3fba_4c3b_11e8_903f_32001d384000level0_row4\" class=\"row_heading level0 row4\" >born</th> \n",
" <td id=\"T_60af3fba_4c3b_11e8_903f_32001d384000row4_col0\" class=\"data row4 col0\" >0.17403</td> \n",
" <td id=\"T_60af3fba_4c3b_11e8_903f_32001d384000row4_col1\" class=\"data row4 col1\" >-0.994296</td> \n",
" <td id=\"T_60af3fba_4c3b_11e8_903f_32001d384000row4_col2\" class=\"data row4 col2\" >-0.129971</td> \n",
" <td id=\"T_60af3fba_4c3b_11e8_903f_32001d384000row4_col3\" class=\"data row4 col3\" >0.13293</td> \n",
" <td id=\"T_60af3fba_4c3b_11e8_903f_32001d384000row4_col4\" class=\"data row4 col4\" >1</td> \n",
" <td id=\"T_60af3fba_4c3b_11e8_903f_32001d384000row4_col5\" class=\"data row4 col5\" >-0.163677</td> \n",
" <td id=\"T_60af3fba_4c3b_11e8_903f_32001d384000row4_col6\" class=\"data row4 col6\" >0.0333731</td> \n",
" </tr> <tr> \n",
" <th id=\"T_60af3fba_4c3b_11e8_903f_32001d384000level0_row5\" class=\"row_heading level0 row5\" >weight</th> \n",
" <td id=\"T_60af3fba_4c3b_11e8_903f_32001d384000row5_col0\" class=\"data row5 col0\" >-0.0826093</td> \n",
" <td id=\"T_60af3fba_4c3b_11e8_903f_32001d384000row5_col1\" class=\"data row5 col1\" >0.157223</td> \n",
" <td id=\"T_60af3fba_4c3b_11e8_903f_32001d384000row5_col2\" class=\"data row5 col2\" >0.159385</td> \n",
" <td id=\"T_60af3fba_4c3b_11e8_903f_32001d384000row5_col3\" class=\"data row5 col3\" >-0.139194</td> \n",
" <td id=\"T_60af3fba_4c3b_11e8_903f_32001d384000row5_col4\" class=\"data row5 col4\" >-0.163677</td> \n",
" <td id=\"T_60af3fba_4c3b_11e8_903f_32001d384000row5_col5\" class=\"data row5 col5\" >1</td> \n",
" <td id=\"T_60af3fba_4c3b_11e8_903f_32001d384000row5_col6\" class=\"data row5 col6\" >0.757689</td> \n",
" </tr> <tr> \n",
" <th id=\"T_60af3fba_4c3b_11e8_903f_32001d384000level0_row6\" class=\"row_heading level0 row6\" >height</th> \n",
" <td id=\"T_60af3fba_4c3b_11e8_903f_32001d384000row6_col0\" class=\"data row6 col0\" >0.0196139</td> \n",
" <td id=\"T_60af3fba_4c3b_11e8_903f_32001d384000row6_col1\" class=\"data row6 col1\" >-0.0282972</td> \n",
" <td id=\"T_60af3fba_4c3b_11e8_903f_32001d384000row6_col2\" class=\"data row6 col2\" >-0.0153843</td> \n",
" <td id=\"T_60af3fba_4c3b_11e8_903f_32001d384000row6_col3\" class=\"data row6 col3\" >-0.0712482</td> \n",
" <td id=\"T_60af3fba_4c3b_11e8_903f_32001d384000row6_col4\" class=\"data row6 col4\" >0.0333731</td> \n",
" <td id=\"T_60af3fba_4c3b_11e8_903f_32001d384000row6_col5\" class=\"data row6 col5\" >0.757689</td> \n",
" <td id=\"T_60af3fba_4c3b_11e8_903f_32001d384000row6_col6\" class=\"data row6 col6\" >1</td> \n",
" </tr></tbody> \n",
"</table> "
],
"text/plain": [
"<pandas.io.formats.style.Styler at 0x1103ce6a0>"
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
"ename": "NameError",
"evalue": "name 'data' is not defined",
"output_type": "error",
"traceback": [
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
"\u001b[0;31mNameError\u001b[0m Traceback (most recent call last)",
"\u001b[0;32m<ipython-input-1-b834b3dc0d59>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m()\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0mdata\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mcorr\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mstyle\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mbackground_gradient\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mcmap\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;34m'Wistia'\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m",
"\u001b[0;31mNameError\u001b[0m: name 'data' is not defined"
]
}
],
"source": [

View File

@ -40,31 +40,29 @@
"\n",
"**\\*\\* Double Check this with Murray \\*\\***\n",
"\n",
"\\*\\* Now we need to read the excel file in a nice way given that the spreadsheet has double headings in some places"
"TO DO:\n",
"\\*\\* Need to test the statistical significance of the data"
]
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": 19,
"metadata": {},
"outputs": [],
"source": [
"data = pd.read_excel('Dong_etal_2018_data.xlsx', sheetname='A1')"
"# Contains data about the number of customers during the recorded time period\n",
"cust_data = pd.read_excel('edited_Dong_etal_2018_data.xlsx', sheetname='# of Customers')\n",
"# Contains data about the customers' median spending amounts during the recorded time period\n",
"spend_data = pd.read_excel('edited_Dong_etal_2018_data.xlsx', sheetname='Median spending amount')\n",
"# Contains data about the number of transactions during the recorded time period\n",
"trans_data = pd.read_excel('edited_Dong_etal_2018_data.xlsx', sheetname='# of transactions')"
]
},
{
"cell_type": "code",
"execution_count": 14,
"execution_count": 17,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"/usr/local/lib/python3.5/dist-packages/matplotlib/colors.py:494: RuntimeWarning: invalid value encountered in less\n",
" cbook._putmask(xa, xa < 0.0, -1)\n"
]
},
{
"data": {
"text/html": [
@ -72,159 +70,105 @@
" <style type=\"text/css\" >\n",
" \n",
" \n",
" #T_85fc1364_4d1f_11e8_bb8d_8086f2cce01brow0_col0 {\n",
" #T_14d8b9dc_4dcc_11e8_bb8d_8086f2cce01brow0_col0 {\n",
" \n",
" background-color: #fc7f00;\n",
" \n",
" }\n",
" \n",
" #T_14d8b9dc_4dcc_11e8_bb8d_8086f2cce01brow0_col1 {\n",
" \n",
" background-color: #e4ff7a;\n",
" \n",
" }\n",
" \n",
" #T_85fc1364_4d1f_11e8_bb8d_8086f2cce01brow0_col1 {\n",
" #T_14d8b9dc_4dcc_11e8_bb8d_8086f2cce01brow0_col2 {\n",
" \n",
" background-color: #e4ff7a;\n",
" \n",
" }\n",
" \n",
" #T_85fc1364_4d1f_11e8_bb8d_8086f2cce01brow0_col2 {\n",
" #T_14d8b9dc_4dcc_11e8_bb8d_8086f2cce01brow0_col3 {\n",
" \n",
" background-color: #e4ff7a;\n",
" \n",
" }\n",
" \n",
" #T_85fc1364_4d1f_11e8_bb8d_8086f2cce01brow0_col3 {\n",
" #T_14d8b9dc_4dcc_11e8_bb8d_8086f2cce01brow1_col0 {\n",
" \n",
" background-color: #f9ed2f;\n",
" \n",
" }\n",
" \n",
" #T_14d8b9dc_4dcc_11e8_bb8d_8086f2cce01brow1_col1 {\n",
" \n",
" background-color: #fc7f00;\n",
" \n",
" }\n",
" \n",
" #T_14d8b9dc_4dcc_11e8_bb8d_8086f2cce01brow1_col2 {\n",
" \n",
" background-color: #fc8000;\n",
" \n",
" }\n",
" \n",
" #T_14d8b9dc_4dcc_11e8_bb8d_8086f2cce01brow1_col3 {\n",
" \n",
" background-color: #fd8c00;\n",
" \n",
" }\n",
" \n",
" #T_14d8b9dc_4dcc_11e8_bb8d_8086f2cce01brow2_col0 {\n",
" \n",
" background-color: #f9ed2f;\n",
" \n",
" }\n",
" \n",
" #T_14d8b9dc_4dcc_11e8_bb8d_8086f2cce01brow2_col1 {\n",
" \n",
" background-color: #fc8000;\n",
" \n",
" }\n",
" \n",
" #T_14d8b9dc_4dcc_11e8_bb8d_8086f2cce01brow2_col2 {\n",
" \n",
" background-color: #fc7f00;\n",
" \n",
" }\n",
" \n",
" #T_14d8b9dc_4dcc_11e8_bb8d_8086f2cce01brow2_col3 {\n",
" \n",
" background-color: #fd8b00;\n",
" \n",
" }\n",
" \n",
" #T_14d8b9dc_4dcc_11e8_bb8d_8086f2cce01brow3_col0 {\n",
" \n",
" background-color: #e4ff7a;\n",
" \n",
" }\n",
" \n",
" #T_85fc1364_4d1f_11e8_bb8d_8086f2cce01brow0_col4 {\n",
" #T_14d8b9dc_4dcc_11e8_bb8d_8086f2cce01brow3_col1 {\n",
" \n",
" background-color: #e4ff7a;\n",
" background-color: #fe9000;\n",
" \n",
" }\n",
" \n",
" #T_85fc1364_4d1f_11e8_bb8d_8086f2cce01brow1_col0 {\n",
" #T_14d8b9dc_4dcc_11e8_bb8d_8086f2cce01brow3_col2 {\n",
" \n",
" background-color: #e4ff7a;\n",
" background-color: #fd8f00;\n",
" \n",
" }\n",
" \n",
" #T_85fc1364_4d1f_11e8_bb8d_8086f2cce01brow1_col1 {\n",
" #T_14d8b9dc_4dcc_11e8_bb8d_8086f2cce01brow3_col3 {\n",
" \n",
" background-color: #e4ff7a;\n",
" \n",
" }\n",
" \n",
" #T_85fc1364_4d1f_11e8_bb8d_8086f2cce01brow1_col2 {\n",
" \n",
" background-color: #e4ff7a;\n",
" \n",
" }\n",
" \n",
" #T_85fc1364_4d1f_11e8_bb8d_8086f2cce01brow1_col3 {\n",
" \n",
" background-color: #e4ff7a;\n",
" \n",
" }\n",
" \n",
" #T_85fc1364_4d1f_11e8_bb8d_8086f2cce01brow1_col4 {\n",
" \n",
" background-color: #e4ff7a;\n",
" \n",
" }\n",
" \n",
" #T_85fc1364_4d1f_11e8_bb8d_8086f2cce01brow2_col0 {\n",
" \n",
" background-color: #e4ff7a;\n",
" \n",
" }\n",
" \n",
" #T_85fc1364_4d1f_11e8_bb8d_8086f2cce01brow2_col1 {\n",
" \n",
" background-color: #e4ff7a;\n",
" \n",
" }\n",
" \n",
" #T_85fc1364_4d1f_11e8_bb8d_8086f2cce01brow2_col2 {\n",
" \n",
" background-color: #e4ff7a;\n",
" \n",
" }\n",
" \n",
" #T_85fc1364_4d1f_11e8_bb8d_8086f2cce01brow2_col3 {\n",
" \n",
" background-color: #e4ff7a;\n",
" \n",
" }\n",
" \n",
" #T_85fc1364_4d1f_11e8_bb8d_8086f2cce01brow2_col4 {\n",
" \n",
" background-color: #e4ff7a;\n",
" \n",
" }\n",
" \n",
" #T_85fc1364_4d1f_11e8_bb8d_8086f2cce01brow3_col0 {\n",
" \n",
" background-color: #e4ff7a;\n",
" \n",
" }\n",
" \n",
" #T_85fc1364_4d1f_11e8_bb8d_8086f2cce01brow3_col1 {\n",
" \n",
" background-color: #e4ff7a;\n",
" \n",
" }\n",
" \n",
" #T_85fc1364_4d1f_11e8_bb8d_8086f2cce01brow3_col2 {\n",
" \n",
" background-color: #e4ff7a;\n",
" \n",
" }\n",
" \n",
" #T_85fc1364_4d1f_11e8_bb8d_8086f2cce01brow3_col3 {\n",
" \n",
" background-color: #e4ff7a;\n",
" \n",
" }\n",
" \n",
" #T_85fc1364_4d1f_11e8_bb8d_8086f2cce01brow3_col4 {\n",
" \n",
" background-color: #e4ff7a;\n",
" \n",
" }\n",
" \n",
" #T_85fc1364_4d1f_11e8_bb8d_8086f2cce01brow4_col0 {\n",
" \n",
" background-color: #e4ff7a;\n",
" \n",
" }\n",
" \n",
" #T_85fc1364_4d1f_11e8_bb8d_8086f2cce01brow4_col1 {\n",
" \n",
" background-color: #e4ff7a;\n",
" \n",
" }\n",
" \n",
" #T_85fc1364_4d1f_11e8_bb8d_8086f2cce01brow4_col2 {\n",
" \n",
" background-color: #e4ff7a;\n",
" \n",
" }\n",
" \n",
" #T_85fc1364_4d1f_11e8_bb8d_8086f2cce01brow4_col3 {\n",
" \n",
" background-color: #e4ff7a;\n",
" \n",
" }\n",
" \n",
" #T_85fc1364_4d1f_11e8_bb8d_8086f2cce01brow4_col4 {\n",
" \n",
" background-color: #e4ff7a;\n",
" background-color: #fc7f00;\n",
" \n",
" }\n",
" \n",
" </style>\n",
"\n",
" <table id=\"T_85fc1364_4d1f_11e8_bb8d_8086f2cce01b\" None>\n",
" <table id=\"T_14d8b9dc_4dcc_11e8_bb8d_8086f2cce01b\" None>\n",
" \n",
"\n",
" <thead>\n",
@ -243,22 +187,17 @@
" \n",
" \n",
" <th class=\"col_heading level0 col1\" colspan=1>\n",
" Unnamed: 1\n",
" Min of ref. Days\n",
" \n",
" \n",
" \n",
" <th class=\"col_heading level0 col2\" colspan=1>\n",
" Unnamed: 5\n",
" Max of ref. Days\n",
" \n",
" \n",
" \n",
" <th class=\"col_heading level0 col3\" colspan=1>\n",
" Unnamed: 9\n",
" \n",
" \n",
" \n",
" <th class=\"col_heading level0 col4\" colspan=1>\n",
" Unnamed: 13\n",
" Decrease on Day 62\n",
" \n",
" \n",
" </tr>\n",
@ -269,39 +208,33 @@
" <tr>\n",
" \n",
" \n",
" <th id=\"T_85fc1364_4d1f_11e8_bb8d_8086f2cce01b\"\n",
" <th id=\"T_14d8b9dc_4dcc_11e8_bb8d_8086f2cce01b\"\n",
" class=\"row_heading level0 row0\" rowspan=1>\n",
" Distance from event center (km)\n",
" \n",
" \n",
" \n",
" <td id=\"T_85fc1364_4d1f_11e8_bb8d_8086f2cce01brow0_col0\"\n",
" <td id=\"T_14d8b9dc_4dcc_11e8_bb8d_8086f2cce01brow0_col0\"\n",
" class=\"data row0 col0\" >\n",
" 1\n",
" \n",
" \n",
" \n",
" <td id=\"T_85fc1364_4d1f_11e8_bb8d_8086f2cce01brow0_col1\"\n",
" <td id=\"T_14d8b9dc_4dcc_11e8_bb8d_8086f2cce01brow0_col1\"\n",
" class=\"data row0 col1\" >\n",
" nan\n",
" -0.104681\n",
" \n",
" \n",
" \n",
" <td id=\"T_85fc1364_4d1f_11e8_bb8d_8086f2cce01brow0_col2\"\n",
" <td id=\"T_14d8b9dc_4dcc_11e8_bb8d_8086f2cce01brow0_col2\"\n",
" class=\"data row0 col2\" >\n",
" nan\n",
" -0.101477\n",
" \n",
" \n",
" \n",
" <td id=\"T_85fc1364_4d1f_11e8_bb8d_8086f2cce01brow0_col3\"\n",
" <td id=\"T_14d8b9dc_4dcc_11e8_bb8d_8086f2cce01brow0_col3\"\n",
" class=\"data row0 col3\" >\n",
" nan\n",
" \n",
" \n",
" \n",
" <td id=\"T_85fc1364_4d1f_11e8_bb8d_8086f2cce01brow0_col4\"\n",
" class=\"data row0 col4\" >\n",
" nan\n",
" -0.375261\n",
" \n",
" \n",
" </tr>\n",
@ -309,39 +242,33 @@
" <tr>\n",
" \n",
" \n",
" <th id=\"T_85fc1364_4d1f_11e8_bb8d_8086f2cce01b\"\n",
" <th id=\"T_14d8b9dc_4dcc_11e8_bb8d_8086f2cce01b\"\n",
" class=\"row_heading level0 row1\" rowspan=1>\n",
" Unnamed: 1\n",
" Min of ref. Days\n",
" \n",
" \n",
" \n",
" <td id=\"T_85fc1364_4d1f_11e8_bb8d_8086f2cce01brow1_col0\"\n",
" <td id=\"T_14d8b9dc_4dcc_11e8_bb8d_8086f2cce01brow1_col0\"\n",
" class=\"data row1 col0\" >\n",
" nan\n",
" -0.104681\n",
" \n",
" \n",
" \n",
" <td id=\"T_85fc1364_4d1f_11e8_bb8d_8086f2cce01brow1_col1\"\n",
" <td id=\"T_14d8b9dc_4dcc_11e8_bb8d_8086f2cce01brow1_col1\"\n",
" class=\"data row1 col1\" >\n",
" nan\n",
" 1\n",
" \n",
" \n",
" \n",
" <td id=\"T_85fc1364_4d1f_11e8_bb8d_8086f2cce01brow1_col2\"\n",
" <td id=\"T_14d8b9dc_4dcc_11e8_bb8d_8086f2cce01brow1_col2\"\n",
" class=\"data row1 col2\" >\n",
" nan\n",
" 0.990716\n",
" \n",
" \n",
" \n",
" <td id=\"T_85fc1364_4d1f_11e8_bb8d_8086f2cce01brow1_col3\"\n",
" <td id=\"T_14d8b9dc_4dcc_11e8_bb8d_8086f2cce01brow1_col3\"\n",
" class=\"data row1 col3\" >\n",
" nan\n",
" \n",
" \n",
" \n",
" <td id=\"T_85fc1364_4d1f_11e8_bb8d_8086f2cce01brow1_col4\"\n",
" class=\"data row1 col4\" >\n",
" nan\n",
" 0.855398\n",
" \n",
" \n",
" </tr>\n",
@ -349,39 +276,33 @@
" <tr>\n",
" \n",
" \n",
" <th id=\"T_85fc1364_4d1f_11e8_bb8d_8086f2cce01b\"\n",
" <th id=\"T_14d8b9dc_4dcc_11e8_bb8d_8086f2cce01b\"\n",
" class=\"row_heading level0 row2\" rowspan=1>\n",
" Unnamed: 5\n",
" Max of ref. Days\n",
" \n",
" \n",
" \n",
" <td id=\"T_85fc1364_4d1f_11e8_bb8d_8086f2cce01brow2_col0\"\n",
" <td id=\"T_14d8b9dc_4dcc_11e8_bb8d_8086f2cce01brow2_col0\"\n",
" class=\"data row2 col0\" >\n",
" nan\n",
" -0.101477\n",
" \n",
" \n",
" \n",
" <td id=\"T_85fc1364_4d1f_11e8_bb8d_8086f2cce01brow2_col1\"\n",
" <td id=\"T_14d8b9dc_4dcc_11e8_bb8d_8086f2cce01brow2_col1\"\n",
" class=\"data row2 col1\" >\n",
" nan\n",
" 0.990716\n",
" \n",
" \n",
" \n",
" <td id=\"T_85fc1364_4d1f_11e8_bb8d_8086f2cce01brow2_col2\"\n",
" <td id=\"T_14d8b9dc_4dcc_11e8_bb8d_8086f2cce01brow2_col2\"\n",
" class=\"data row2 col2\" >\n",
" nan\n",
" 1\n",
" \n",
" \n",
" \n",
" <td id=\"T_85fc1364_4d1f_11e8_bb8d_8086f2cce01brow2_col3\"\n",
" <td id=\"T_14d8b9dc_4dcc_11e8_bb8d_8086f2cce01brow2_col3\"\n",
" class=\"data row2 col3\" >\n",
" nan\n",
" \n",
" \n",
" \n",
" <td id=\"T_85fc1364_4d1f_11e8_bb8d_8086f2cce01brow2_col4\"\n",
" class=\"data row2 col4\" >\n",
" nan\n",
" 0.869914\n",
" \n",
" \n",
" </tr>\n",
@ -389,79 +310,33 @@
" <tr>\n",
" \n",
" \n",
" <th id=\"T_85fc1364_4d1f_11e8_bb8d_8086f2cce01b\"\n",
" <th id=\"T_14d8b9dc_4dcc_11e8_bb8d_8086f2cce01b\"\n",
" class=\"row_heading level0 row3\" rowspan=1>\n",
" Unnamed: 9\n",
" Decrease on Day 62\n",
" \n",
" \n",
" \n",
" <td id=\"T_85fc1364_4d1f_11e8_bb8d_8086f2cce01brow3_col0\"\n",
" <td id=\"T_14d8b9dc_4dcc_11e8_bb8d_8086f2cce01brow3_col0\"\n",
" class=\"data row3 col0\" >\n",
" nan\n",
" -0.375261\n",
" \n",
" \n",
" \n",
" <td id=\"T_85fc1364_4d1f_11e8_bb8d_8086f2cce01brow3_col1\"\n",
" <td id=\"T_14d8b9dc_4dcc_11e8_bb8d_8086f2cce01brow3_col1\"\n",
" class=\"data row3 col1\" >\n",
" nan\n",
" 0.855398\n",
" \n",
" \n",
" \n",
" <td id=\"T_85fc1364_4d1f_11e8_bb8d_8086f2cce01brow3_col2\"\n",
" <td id=\"T_14d8b9dc_4dcc_11e8_bb8d_8086f2cce01brow3_col2\"\n",
" class=\"data row3 col2\" >\n",
" nan\n",
" 0.869914\n",
" \n",
" \n",
" \n",
" <td id=\"T_85fc1364_4d1f_11e8_bb8d_8086f2cce01brow3_col3\"\n",
" <td id=\"T_14d8b9dc_4dcc_11e8_bb8d_8086f2cce01brow3_col3\"\n",
" class=\"data row3 col3\" >\n",
" nan\n",
" \n",
" \n",
" \n",
" <td id=\"T_85fc1364_4d1f_11e8_bb8d_8086f2cce01brow3_col4\"\n",
" class=\"data row3 col4\" >\n",
" nan\n",
" \n",
" \n",
" </tr>\n",
" \n",
" <tr>\n",
" \n",
" \n",
" <th id=\"T_85fc1364_4d1f_11e8_bb8d_8086f2cce01b\"\n",
" class=\"row_heading level0 row4\" rowspan=1>\n",
" Unnamed: 13\n",
" \n",
" \n",
" \n",
" <td id=\"T_85fc1364_4d1f_11e8_bb8d_8086f2cce01brow4_col0\"\n",
" class=\"data row4 col0\" >\n",
" nan\n",
" \n",
" \n",
" \n",
" <td id=\"T_85fc1364_4d1f_11e8_bb8d_8086f2cce01brow4_col1\"\n",
" class=\"data row4 col1\" >\n",
" nan\n",
" \n",
" \n",
" \n",
" <td id=\"T_85fc1364_4d1f_11e8_bb8d_8086f2cce01brow4_col2\"\n",
" class=\"data row4 col2\" >\n",
" nan\n",
" \n",
" \n",
" \n",
" <td id=\"T_85fc1364_4d1f_11e8_bb8d_8086f2cce01brow4_col3\"\n",
" class=\"data row4 col3\" >\n",
" nan\n",
" \n",
" \n",
" \n",
" <td id=\"T_85fc1364_4d1f_11e8_bb8d_8086f2cce01brow4_col4\"\n",
" class=\"data row4 col4\" >\n",
" nan\n",
" 1\n",
" \n",
" \n",
" </tr>\n",
@ -471,25 +346,46 @@
" "
],
"text/plain": [
"<pandas.formats.style.Styler at 0x7f4b0a308898>"
"<pandas.formats.style.Styler at 0x7f4b09f5a630>"
]
},
"execution_count": 14,
"execution_count": 17,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"data.corr().style.background_gradient(cmap='Wistia')"
"cust_data.corr().style.background_gradient(cmap='Wistia')"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"****\\*\\*\\*\\* We gon' need to get rid of some of them headins' \\*\\*\\*\\* ****"
"Now to plot some data..."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},