UniTO/anno2/YearI/SecondSem/BDM/progetto/.ipynb_checkpoints/Lab1-2-checkpoint.ipynb

1798 lines
83 KiB
Text
Raw Normal View History

2018-11-22 13:09:11 +01:00
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"import newsource.libword as libword\n",
"import math\n",
"import pickle\n",
"from decimal import *\n",
"import pandas as pd\n",
"from collections import OrderedDict as odict\n",
"import matplotlib.pyplot as plt\n",
"%matplotlib inline\n",
"import seaborn as sns"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"<module 'newsource.libword' from '/_old/UNITO/lezioni/YearI/SecondSem/BDM/progetto/newsource/libword.py'>"
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"import importlib\n",
"importlib.reload(libword)"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
"with open('wordDfs.pickle', 'rb') as fp:\n",
" wordDfs = pickle.load(fp)\n",
"with open('discretizeDfs.pickle', 'rb') as fp:\n",
" discretizeDfs = pickle.load(fp)"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
"analisi = \"tf\"\n",
"coord = 'X'\n",
"csv = 1"
]
},
{
"cell_type": "code",
"execution_count": 20,
"metadata": {},
"outputs": [],
"source": [
"if analisi == 'tf':\n",
" dfs = libword.parallel(target=libword.extract_words, iterable=wordDfs, \n",
" how=libword.text_freq, nwords=10, n=12)"
]
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {},
"outputs": [],
"source": [
"if analisi == 'idf':\n",
" idfs = libword.idf(wordDfs.values())\n",
" dfs = sorted(idfs, key=lambda x : idfs[x])[-10:]"
]
},
{
"cell_type": "code",
"execution_count": 7,
"metadata": {},
"outputs": [],
"source": [
"if analisi == 'idf2':\n",
" g_idfs = libword.idf(g1.values())\n",
" dfs = sorted(g_idfs, key=lambda x : g_idfs[x])[-10:]\n",
" "
]
},
{
"cell_type": "code",
"execution_count": 8,
"metadata": {},
"outputs": [],
"source": [
"if analisi == 'tf_idf':\n",
" dfs = libword.tfidf(wordDfs, nwords=10)"
]
},
{
"cell_type": "code",
"execution_count": 9,
"metadata": {},
"outputs": [],
"source": [
"if analisi == 'tf_idf2':\n",
" dfs = libword.tfidf(g, nwords=10)"
]
},
{
"cell_type": "code",
"execution_count": 10,
"metadata": {},
"outputs": [],
"source": [
"#x = odict((k,v) for k,v in dfs.items() if k[0] == 'X' )\n",
"#y = odict((k,v) for k,v in dfs.items() if k[0] == 'Y' )\n",
"#z = odict((k,v) for k,v in dfs.items() if k[0] == 'Z' )\n",
"#w = odict((k,v) for k,v in dfs.items() if k[0] == 'W' )"
]
},
{
"cell_type": "code",
"execution_count": 11,
"metadata": {},
"outputs": [],
"source": [
"#v = oc.image(wordDfs[('X',1)])"
]
},
{
"cell_type": "code",
"execution_count": 12,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"(40, 20)\n"
]
},
{
"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>0</th>\n",
" <th>1</th>\n",
" <th>2</th>\n",
" <th>3</th>\n",
" <th>4</th>\n",
" <th>5</th>\n",
" <th>6</th>\n",
" <th>7</th>\n",
" <th>8</th>\n",
" <th>9</th>\n",
" <th>10</th>\n",
" <th>11</th>\n",
" <th>12</th>\n",
" <th>13</th>\n",
" <th>14</th>\n",
" <th>15</th>\n",
" <th>16</th>\n",
" <th>17</th>\n",
" <th>18</th>\n",
" <th>19</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>0.580360</td>\n",
" <td>0.580360</td>\n",
" <td>0.58036</td>\n",
" <td>0.580360</td>\n",
" <td>-1.000000</td>\n",
" <td>0.367590</td>\n",
" <td>0.468980</td>\n",
" <td>0.580360</td>\n",
" <td>0.580360</td>\n",
" <td>0.067262</td>\n",
" <td>-0.143600</td>\n",
" <td>0.227100</td>\n",
" <td>-1.00000</td>\n",
" <td>0.580360</td>\n",
" <td>0.580360</td>\n",
" <td>-1.000000</td>\n",
" <td>0.580360</td>\n",
" <td>0.58036</td>\n",
" <td>0.580360</td>\n",
" <td>0.512240</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>0.580360</td>\n",
" <td>0.580360</td>\n",
" <td>0.58036</td>\n",
" <td>0.580360</td>\n",
" <td>-1.000000</td>\n",
" <td>0.436420</td>\n",
" <td>0.191160</td>\n",
" <td>0.318920</td>\n",
" <td>0.580360</td>\n",
" <td>0.067262</td>\n",
" <td>-0.136200</td>\n",
" <td>0.208590</td>\n",
" <td>-1.00000</td>\n",
" <td>0.580360</td>\n",
" <td>0.580360</td>\n",
" <td>-1.000000</td>\n",
" <td>0.580360</td>\n",
" <td>0.33375</td>\n",
" <td>0.580360</td>\n",
" <td>0.512240</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>0.580360</td>\n",
" <td>0.580360</td>\n",
" <td>0.58036</td>\n",
" <td>0.580360</td>\n",
" <td>-0.468980</td>\n",
" <td>0.512240</td>\n",
" <td>-0.100770</td>\n",
" <td>-0.015834</td>\n",
" <td>0.580360</td>\n",
" <td>0.512240</td>\n",
" <td>0.158810</td>\n",
" <td>0.015834</td>\n",
" <td>-1.00000</td>\n",
" <td>0.580360</td>\n",
" <td>0.580360</td>\n",
" <td>-1.000000</td>\n",
" <td>0.580360</td>\n",
" <td>0.29221</td>\n",
" <td>0.580360</td>\n",
" <td>0.580360</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>0.580360</td>\n",
" <td>0.468980</td>\n",
" <td>0.58036</td>\n",
" <td>0.580360</td>\n",
" <td>-0.166630</td>\n",
" <td>0.436420</td>\n",
" <td>-0.333750</td>\n",
" <td>-1.000000</td>\n",
" <td>0.580360</td>\n",
" <td>0.580360</td>\n",
" <td>0.580360</td>\n",
" <td>-0.047760</td>\n",
" <td>-1.00000</td>\n",
" <td>0.580360</td>\n",
" <td>0.580360</td>\n",
" <td>-1.000000</td>\n",
" <td>0.580360</td>\n",
" <td>-0.14360</td>\n",
" <td>0.512240</td>\n",
" <td>0.580360</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>0.580360</td>\n",
" <td>0.158810</td>\n",
" <td>0.58036</td>\n",
" <td>0.580360</td>\n",
" <td>0.246940</td>\n",
" <td>0.305130</td>\n",
" <td>-1.000000</td>\n",
" <td>-0.191160</td>\n",
" <td>0.580360</td>\n",
" <td>0.580360</td>\n",
" <td>0.580360</td>\n",
" <td>-0.217690</td>\n",
" <td>-1.00000</td>\n",
" <td>0.580360</td>\n",
" <td>0.580360</td>\n",
" <td>-0.580360</td>\n",
" <td>0.580360</td>\n",
" <td>-0.16663</td>\n",
" <td>0.387370</td>\n",
" <td>0.580360</td>\n",
" </tr>\n",
" <tr>\n",
" <th>5</th>\n",
" <td>0.580360</td>\n",
" <td>0.468980</td>\n",
" <td>0.58036</td>\n",
" <td>0.580360</td>\n",
" <td>0.054223</td>\n",
" <td>0.409930</td>\n",
" <td>-1.000000</td>\n",
" <td>-0.121740</td>\n",
" <td>0.580360</td>\n",
" <td>0.580360</td>\n",
" <td>0.580360</td>\n",
" <td>-0.199750</td>\n",
" <td>-1.00000</td>\n",
" <td>0.580360</td>\n",
" <td>0.387370</td>\n",
" <td>-0.268470</td>\n",
" <td>0.580360</td>\n",
" <td>-0.10077</td>\n",
" <td>0.280020</td>\n",
" <td>0.580360</td>\n",
" </tr>\n",
" <tr>\n",
" <th>6</th>\n",
" <td>0.512240</td>\n",
" <td>0.268470</td>\n",
" <td>0.58036</td>\n",
" <td>0.512240</td>\n",
" <td>-0.136200</td>\n",
" <td>0.257470</td>\n",
" <td>-1.000000</td>\n",
" <td>0.436420</td>\n",
" <td>0.580360</td>\n",
" <td>0.580360</td>\n",
" <td>0.580360</td>\n",
" <td>-0.349870</td>\n",
" <td>-1.00000</td>\n",
" <td>0.580360</td>\n",
" <td>0.034925</td>\n",
" <td>-0.166630</td>\n",
" <td>0.034925</td>\n",
" <td>-0.58036</td>\n",
" <td>-0.080487</td>\n",
" <td>0.580360</td>\n",
" </tr>\n",
" <tr>\n",
" <th>7</th>\n",
" <td>0.333750</td>\n",
" <td>0.054223</td>\n",
" <td>0.40993</td>\n",
" <td>0.468980</td>\n",
" <td>-0.292210</td>\n",
" <td>0.136200</td>\n",
" <td>-1.000000</td>\n",
" <td>0.468980</td>\n",
" <td>0.580360</td>\n",
" <td>0.580360</td>\n",
" <td>0.580360</td>\n",
" <td>-0.409930</td>\n",
" <td>-1.00000</td>\n",
" <td>0.580360</td>\n",
" <td>-0.409930</td>\n",
" <td>0.054223</td>\n",
" <td>-0.318920</td>\n",
" <td>-1.00000</td>\n",
" <td>0.060722</td>\n",
" <td>0.580360</td>\n",
" </tr>\n",
" <tr>\n",
" <th>8</th>\n",
" <td>0.041329</td>\n",
" <td>-0.100770</td>\n",
" <td>0.18279</td>\n",
" <td>0.318920</td>\n",
" <td>0.067262</td>\n",
" <td>0.067262</td>\n",
" <td>-0.580360</td>\n",
" <td>0.468980</td>\n",
" <td>0.580360</td>\n",
" <td>0.580360</td>\n",
" <td>0.580360</td>\n",
" <td>-0.580360</td>\n",
" <td>-1.00000</td>\n",
" <td>0.580360</td>\n",
" <td>-1.000000</td>\n",
" <td>0.257470</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.00000</td>\n",
" <td>-0.367590</td>\n",
" <td>0.580360</td>\n",
" </tr>\n",
" <tr>\n",
" <th>9</th>\n",
" <td>-0.022182</td>\n",
" <td>-0.512240</td>\n",
" <td>0.04776</td>\n",
" <td>-0.009496</td>\n",
" <td>0.512240</td>\n",
" <td>-0.107670</td>\n",
" <td>-0.333750</td>\n",
" <td>0.107670</td>\n",
" <td>0.580360</td>\n",
" <td>0.512240</td>\n",
" <td>0.512240</td>\n",
" <td>-0.580360</td>\n",
" <td>-1.00000</td>\n",
" <td>0.580360</td>\n",
" <td>-1.000000</td>\n",
" <td>0.468980</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.00000</td>\n",
" <td>-0.580360</td>\n",
" <td>0.580360</td>\n",
" </tr>\n",
" <tr>\n",
" <th>10</th>\n",
" <td>-0.246940</td>\n",
" <td>-0.436420</td>\n",
" <td>-0.10077</td>\n",
" <td>-0.028545</td>\n",
" <td>0.468980</td>\n",
" <td>-0.318920</td>\n",
" <td>-0.107670</td>\n",
" <td>-0.580360</td>\n",
" <td>0.580360</td>\n",
" <td>0.292210</td>\n",
" <td>0.174620</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.00000</td>\n",
" <td>0.512240</td>\n",
" <td>-1.000000</td>\n",
" <td>0.580360</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.00000</td>\n",
" <td>-1.000000</td>\n",
" <td>0.580360</td>\n",
" </tr>\n",
" <tr>\n",
" <th>11</th>\n",
" <td>-0.436420</td>\n",
" <td>-0.436420</td>\n",
" <td>-0.23683</td>\n",
" <td>-0.292210</td>\n",
" <td>0.468980</td>\n",
" <td>-0.468980</td>\n",
" <td>-0.028545</td>\n",
" <td>-1.000000</td>\n",
" <td>0.580360</td>\n",
" <td>-0.199750</td>\n",
" <td>-0.305130</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.00000</td>\n",
" <td>0.512240</td>\n",
" <td>-1.000000</td>\n",
" <td>0.580360</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.00000</td>\n",
" <td>-1.000000</td>\n",
" <td>0.580360</td>\n",
" </tr>\n",
" <tr>\n",
" <th>12</th>\n",
" <td>-0.580360</td>\n",
" <td>-1.000000</td>\n",
" <td>-0.43642</td>\n",
" <td>-0.387370</td>\n",
" <td>0.305130</td>\n",
" <td>-1.000000</td>\n",
" <td>-0.003165</td>\n",
" <td>-0.143600</td>\n",
" <td>0.087183</td>\n",
" <td>-0.143600</td>\n",
" <td>-0.022182</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.00000</td>\n",
" <td>0.174620</td>\n",
" <td>-1.000000</td>\n",
" <td>0.580360</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.00000</td>\n",
" <td>-1.000000</td>\n",
" <td>0.047760</td>\n",
" </tr>\n",
" <tr>\n",
" <th>13</th>\n",
" <td>-1.000000</td>\n",
" <td>-1.000000</td>\n",
" <td>-0.36759</td>\n",
" <td>-1.000000</td>\n",
" <td>-0.227100</td>\n",
" <td>-1.000000</td>\n",
" <td>0.022182</td>\n",
" <td>0.166630</td>\n",
" <td>0.280020</td>\n",
" <td>-0.257470</td>\n",
" <td>0.208590</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.00000</td>\n",
" <td>0.009496</td>\n",
" <td>-1.000000</td>\n",
" <td>0.580360</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.00000</td>\n",
" <td>-1.000000</td>\n",
" <td>-0.028545</td>\n",
" </tr>\n",
" <tr>\n",
" <th>14</th>\n",
" <td>-1.000000</td>\n",
" <td>-1.000000</td>\n",
" <td>-0.33375</td>\n",
" <td>-1.000000</td>\n",
" <td>-0.580360</td>\n",
" <td>-1.000000</td>\n",
" <td>0.041329</td>\n",
" <td>0.305130</td>\n",
" <td>-0.191160</td>\n",
" <td>-0.468980</td>\n",
" <td>0.158810</td>\n",
" <td>-1.000000</td>\n",
" <td>-0.58036</td>\n",
" <td>-0.208590</td>\n",
" <td>-1.000000</td>\n",
" <td>0.580360</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.00000</td>\n",
" <td>-1.000000</td>\n",
" <td>-0.367590</td>\n",
" </tr>\n",
" <tr>\n",
" <th>15</th>\n",
" <td>-1.000000</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.00000</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.000000</td>\n",
" <td>0.041329</td>\n",
" <td>0.333750</td>\n",
" <td>-0.512240</td>\n",
" <td>-1.000000</td>\n",
" <td>0.047760</td>\n",
" <td>-1.000000</td>\n",
" <td>-0.21769</td>\n",
" <td>-0.580360</td>\n",
" <td>-1.000000</td>\n",
" <td>0.580360</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.00000</td>\n",
" <td>-1.000000</td>\n",
" <td>-0.580360</td>\n",
" </tr>\n",
" <tr>\n",
" <th>16</th>\n",
" <td>-1.000000</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.00000</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.000000</td>\n",
" <td>0.054223</td>\n",
" <td>0.305130</td>\n",
" <td>-0.318920</td>\n",
" <td>-1.000000</td>\n",
" <td>-0.143600</td>\n",
" <td>-1.000000</td>\n",
" <td>-0.16663</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.000000</td>\n",
" <td>0.580360</td>\n",
" <td>-1.000000</td>\n",
" <td>-0.58036</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.000000</td>\n",
" </tr>\n",
" <tr>\n",
" <th>17</th>\n",
" <td>-1.000000</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.00000</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.000000</td>\n",
" <td>-0.047760</td>\n",
" <td>0.182790</td>\n",
" <td>-0.580360</td>\n",
" <td>-1.000000</td>\n",
" <td>-0.387370</td>\n",
" <td>-1.000000</td>\n",
" <td>-0.13620</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.000000</td>\n",
" <td>0.580360</td>\n",
" <td>-1.000000</td>\n",
" <td>-0.58036</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.000000</td>\n",
" </tr>\n",
" <tr>\n",
" <th>18</th>\n",
" <td>-1.000000</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.00000</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.000000</td>\n",
" <td>-0.387370</td>\n",
" <td>-0.227100</td>\n",
" <td>-0.114660</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.000000</td>\n",
" <td>0.31892</td>\n",
" <td>-1.000000</td>\n",
" <td>-0.512240</td>\n",
" <td>0.580360</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.00000</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.000000</td>\n",
" </tr>\n",
" <tr>\n",
" <th>19</th>\n",
" <td>-1.000000</td>\n",
" <td>-0.580360</td>\n",
" <td>-1.00000</td>\n",
" <td>-1.000000</td>\n",
" <td>-0.436420</td>\n",
" <td>0.054223</td>\n",
" <td>-0.468980</td>\n",
" <td>-0.136200</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.000000</td>\n",
" <td>0.58036</td>\n",
" <td>-1.000000</td>\n",
" <td>-0.512240</td>\n",
" <td>0.580360</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.00000</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.000000</td>\n",
" </tr>\n",
" <tr>\n",
" <th>20</th>\n",
" <td>-1.000000</td>\n",
" <td>-0.512240</td>\n",
" <td>-1.00000</td>\n",
" <td>-1.000000</td>\n",
" <td>-0.080487</td>\n",
" <td>0.580360</td>\n",
" <td>-0.512240</td>\n",
" <td>-0.080487</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.000000</td>\n",
" <td>0.51224</td>\n",
" <td>-1.000000</td>\n",
" <td>-0.409930</td>\n",
" <td>0.580360</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.00000</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.000000</td>\n",
" </tr>\n",
" <tr>\n",
" <th>21</th>\n",
" <td>-1.000000</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.00000</td>\n",
" <td>-1.000000</td>\n",
" <td>0.114660</td>\n",
" <td>0.580360</td>\n",
" <td>-0.436420</td>\n",
" <td>-0.143600</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.000000</td>\n",
" <td>0.51224</td>\n",
" <td>-1.000000</td>\n",
" <td>-0.409930</td>\n",
" <td>0.580360</td>\n",
" <td>-1.000000</td>\n",
" <td>-0.58036</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.000000</td>\n",
" </tr>\n",
" <tr>\n",
" <th>22</th>\n",
" <td>-1.000000</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.00000</td>\n",
" <td>-1.000000</td>\n",
" <td>0.166630</td>\n",
" <td>0.580360</td>\n",
" <td>-0.318920</td>\n",
" <td>0.107670</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.000000</td>\n",
" <td>0.51224</td>\n",
" <td>-1.000000</td>\n",
" <td>-0.387370</td>\n",
" <td>0.580360</td>\n",
" <td>-1.000000</td>\n",
" <td>-0.58036</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.000000</td>\n",
" </tr>\n",
" <tr>\n",
" <th>23</th>\n",
" <td>-1.000000</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.00000</td>\n",
" <td>-1.000000</td>\n",
" <td>0.121740</td>\n",
" <td>0.580360</td>\n",
" <td>0.003165</td>\n",
" <td>0.367590</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.000000</td>\n",
" <td>0.43642</td>\n",
" <td>-0.468980</td>\n",
" <td>-0.387370</td>\n",
" <td>0.580360</td>\n",
" <td>-1.000000</td>\n",
" <td>-0.40993</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.000000</td>\n",
" </tr>\n",
" <tr>\n",
" <th>24</th>\n",
" <td>-1.000000</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.00000</td>\n",
" <td>-1.000000</td>\n",
" <td>-0.034925</td>\n",
" <td>0.580360</td>\n",
" <td>0.367590</td>\n",
" <td>0.580360</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.000000</td>\n",
" <td>0.43642</td>\n",
" <td>-0.512240</td>\n",
" <td>-0.349870</td>\n",
" <td>0.580360</td>\n",
" <td>-0.580360</td>\n",
" <td>-0.19975</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.000000</td>\n",
" </tr>\n",
" <tr>\n",
" <th>25</th>\n",
" <td>-1.000000</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.00000</td>\n",
" <td>-0.468980</td>\n",
" <td>-0.257470</td>\n",
" <td>0.580360</td>\n",
" <td>0.580360</td>\n",
" <td>0.580360</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.000000</td>\n",
" <td>0.40993</td>\n",
" <td>-0.436420</td>\n",
" <td>-0.387370</td>\n",
" <td>0.580360</td>\n",
" <td>-0.468980</td>\n",
" <td>0.43642</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.000000</td>\n",
" </tr>\n",
" <tr>\n",
" <th>26</th>\n",
" <td>-1.000000</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.00000</td>\n",
" <td>-0.349870</td>\n",
" <td>-0.367590</td>\n",
" <td>0.580360</td>\n",
" <td>0.580360</td>\n",
" <td>0.580360</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.000000</td>\n",
" <td>0.121740</td>\n",
" <td>0.40993</td>\n",
" <td>-0.268470</td>\n",
" <td>-0.409930</td>\n",
" <td>0.580360</td>\n",
" <td>-0.409930</td>\n",
" <td>0.51224</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.000000</td>\n",
" </tr>\n",
" <tr>\n",
" <th>27</th>\n",
" <td>-1.000000</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.00000</td>\n",
" <td>-0.199750</td>\n",
" <td>-0.468980</td>\n",
" <td>0.580360</td>\n",
" <td>0.580360</td>\n",
" <td>0.580360</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.000000</td>\n",
" <td>0.580360</td>\n",
" <td>0.38737</td>\n",
" <td>-0.136200</td>\n",
" <td>-0.436420</td>\n",
" <td>0.580360</td>\n",
" <td>-0.305130</td>\n",
" <td>0.40993</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.000000</td>\n",
" </tr>\n",
" <tr>\n",
" <th>28</th>\n",
" <td>-0.333750</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.00000</td>\n",
" <td>-0.166630</td>\n",
" <td>-0.409930</td>\n",
" <td>0.580360</td>\n",
" <td>0.580360</td>\n",
" <td>0.580360</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.000000</td>\n",
" <td>0.580360</td>\n",
" <td>0.43642</td>\n",
" <td>0.054223</td>\n",
" <td>-0.468980</td>\n",
" <td>0.580360</td>\n",
" <td>-0.080487</td>\n",
" <td>0.58036</td>\n",
" <td>-0.468980</td>\n",
" <td>-1.000000</td>\n",
" </tr>\n",
" <tr>\n",
" <th>29</th>\n",
" <td>-0.174620</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.00000</td>\n",
" <td>-0.067262</td>\n",
" <td>-0.246940</td>\n",
" <td>0.580360</td>\n",
" <td>0.580360</td>\n",
" <td>0.580360</td>\n",
" <td>-1.000000</td>\n",
" <td>-0.512240</td>\n",
" <td>-0.367590</td>\n",
" <td>0.468980</td>\n",
" <td>0.46898</td>\n",
" <td>0.292210</td>\n",
" <td>-0.436420</td>\n",
" <td>0.136200</td>\n",
" <td>-0.041329</td>\n",
" <td>0.58036</td>\n",
" <td>-0.166630</td>\n",
" <td>-1.000000</td>\n",
" </tr>\n",
" <tr>\n",
" <th>30</th>\n",
" <td>0.268470</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.00000</td>\n",
" <td>-0.034925</td>\n",
" <td>0.080487</td>\n",
" <td>0.580360</td>\n",
" <td>0.580360</td>\n",
" <td>0.580360</td>\n",
" <td>-1.000000</td>\n",
" <td>-0.100770</td>\n",
" <td>0.436420</td>\n",
" <td>-1.000000</td>\n",
" <td>0.51224</td>\n",
" <td>0.387370</td>\n",
" <td>-0.409930</td>\n",
" <td>0.217690</td>\n",
" <td>-0.028545</td>\n",
" <td>0.58036</td>\n",
" <td>-0.182790</td>\n",
" <td>-1.000000</td>\n",
" </tr>\n",
" <tr>\n",
" <th>31</th>\n",
" <td>0.333750</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.00000</td>\n",
" <td>-0.009496</td>\n",
" <td>0.227100</td>\n",
" <td>0.580360</td>\n",
" <td>0.580360</td>\n",
" <td>0.580360</td>\n",
" <td>-1.000000</td>\n",
" <td>0.093942</td>\n",
" <td>0.512240</td>\n",
" <td>0.121740</td>\n",
" <td>0.58036</td>\n",
" <td>0.580360</td>\n",
" <td>-0.318920</td>\n",
" <td>0.151140</td>\n",
" <td>-0.003165</td>\n",
" <td>0.58036</td>\n",
" <td>0.512240</td>\n",
" <td>-1.000000</td>\n",
" </tr>\n",
" <tr>\n",
" <th>32</th>\n",
" <td>0.580360</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.00000</td>\n",
" <td>0.022182</td>\n",
" <td>0.512240</td>\n",
" <td>0.512240</td>\n",
" <td>0.580360</td>\n",
" <td>0.580360</td>\n",
" <td>-1.000000</td>\n",
" <td>0.034925</td>\n",
" <td>0.512240</td>\n",
" <td>0.580360</td>\n",
" <td>0.58036</td>\n",
" <td>0.512240</td>\n",
" <td>-0.292210</td>\n",
" <td>0.060722</td>\n",
" <td>0.054223</td>\n",
" <td>0.58036</td>\n",
" <td>0.580360</td>\n",
" <td>-1.000000</td>\n",
" </tr>\n",
" <tr>\n",
" <th>33</th>\n",
" <td>0.580360</td>\n",
" <td>-0.580360</td>\n",
" <td>-1.00000</td>\n",
" <td>0.028545</td>\n",
" <td>0.580360</td>\n",
" <td>0.512240</td>\n",
" <td>0.580360</td>\n",
" <td>0.580360</td>\n",
" <td>-1.000000</td>\n",
" <td>-0.199750</td>\n",
" <td>0.409930</td>\n",
" <td>0.580360</td>\n",
" <td>0.58036</td>\n",
" <td>0.468980</td>\n",
" <td>-0.292210</td>\n",
" <td>-0.054223</td>\n",
" <td>0.409930</td>\n",
" <td>0.58036</td>\n",
" <td>0.512240</td>\n",
" <td>-1.000000</td>\n",
" </tr>\n",
" <tr>\n",
" <th>34</th>\n",
" <td>0.580360</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.00000</td>\n",
" <td>0.028545</td>\n",
" <td>0.580360</td>\n",
" <td>0.436420</td>\n",
" <td>0.580360</td>\n",
" <td>0.580360</td>\n",
" <td>-1.000000</td>\n",
" <td>-0.318920</td>\n",
" <td>0.349870</td>\n",
" <td>0.580360</td>\n",
" <td>0.58036</td>\n",
" <td>0.436420</td>\n",
" <td>-0.128920</td>\n",
" <td>-0.107670</td>\n",
" <td>0.580360</td>\n",
" <td>0.58036</td>\n",
" <td>0.580360</td>\n",
" <td>-1.000000</td>\n",
" </tr>\n",
" <tr>\n",
" <th>35</th>\n",
" <td>0.580360</td>\n",
" <td>-0.305130</td>\n",
" <td>-1.00000</td>\n",
" <td>0.028545</td>\n",
" <td>0.580360</td>\n",
" <td>0.409930</td>\n",
" <td>0.580360</td>\n",
" <td>0.580360</td>\n",
" <td>-1.000000</td>\n",
" <td>-0.468980</td>\n",
" <td>0.292210</td>\n",
" <td>0.580360</td>\n",
" <td>0.58036</td>\n",
" <td>0.387370</td>\n",
" <td>0.067262</td>\n",
" <td>-0.246940</td>\n",
" <td>0.580360</td>\n",
" <td>0.58036</td>\n",
" <td>0.580360</td>\n",
" <td>-1.000000</td>\n",
" </tr>\n",
" <tr>\n",
" <th>36</th>\n",
" <td>0.580360</td>\n",
" <td>-0.333750</td>\n",
" <td>-1.00000</td>\n",
" <td>0.022182</td>\n",
" <td>0.580360</td>\n",
" <td>0.349870</td>\n",
" <td>0.580360</td>\n",
" <td>0.580360</td>\n",
" <td>-1.000000</td>\n",
" <td>-0.580360</td>\n",
" <td>0.318920</td>\n",
" <td>0.580360</td>\n",
" <td>0.58036</td>\n",
" <td>0.305130</td>\n",
" <td>0.280020</td>\n",
" <td>-0.318920</td>\n",
" <td>0.580360</td>\n",
" <td>0.58036</td>\n",
" <td>0.580360</td>\n",
" <td>-1.000000</td>\n",
" </tr>\n",
" <tr>\n",
" <th>37</th>\n",
" <td>0.580360</td>\n",
" <td>-0.280020</td>\n",
" <td>-1.00000</td>\n",
" <td>0.028545</td>\n",
" <td>0.580360</td>\n",
" <td>0.292210</td>\n",
" <td>0.580360</td>\n",
" <td>0.580360</td>\n",
" <td>-1.000000</td>\n",
" <td>-1.000000</td>\n",
" <td>0.305130</td>\n",
" <td>0.580360</td>\n",
" <td>0.58036</td>\n",
" <td>0.512240</td>\n",
" <td>0.580360</td>\n",
" <td>-0.333750</td>\n",
" <td>0.580360</td>\n",
" <td>0.58036</td>\n",
" <td>0.580360</td>\n",
" <td>-1.000000</td>\n",
" </tr>\n",
" <tr>\n",
" <th>38</th>\n",
" <td>0.580360</td>\n",
" <td>-0.227100</td>\n",
" <td>-1.00000</td>\n",
" <td>0.028545</td>\n",
" <td>0.580360</td>\n",
" <td>0.236830</td>\n",
" <td>0.580360</td>\n",
" <td>0.580360</td>\n",
" <td>-1.000000</td>\n",
" <td>-0.199750</td>\n",
" <td>0.409930</td>\n",
" <td>0.580360</td>\n",
" <td>0.58036</td>\n",
" <td>0.580360</td>\n",
" <td>0.468980</td>\n",
" <td>-0.367590</td>\n",
" <td>0.580360</td>\n",
" <td>0.58036</td>\n",
" <td>0.580360</td>\n",
" <td>-1.000000</td>\n",
" </tr>\n",
" <tr>\n",
" <th>39</th>\n",
" <td>0.580360</td>\n",
" <td>-0.236830</td>\n",
" <td>-1.00000</td>\n",
" <td>0.034925</td>\n",
" <td>0.580360</td>\n",
" <td>0.191160</td>\n",
" <td>0.580360</td>\n",
" <td>0.580360</td>\n",
" <td>-1.000000</td>\n",
" <td>0.143600</td>\n",
" <td>0.580360</td>\n",
" <td>0.580360</td>\n",
" <td>0.58036</td>\n",
" <td>0.580360</td>\n",
" <td>0.580360</td>\n",
" <td>-0.349870</td>\n",
" <td>0.580360</td>\n",
" <td>0.58036</td>\n",
" <td>0.580360</td>\n",
" <td>-1.000000</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" 0 1 2 3 4 5 6 \\\n",
"0 0.580360 0.580360 0.58036 0.580360 -1.000000 0.367590 0.468980 \n",
"1 0.580360 0.580360 0.58036 0.580360 -1.000000 0.436420 0.191160 \n",
"2 0.580360 0.580360 0.58036 0.580360 -0.468980 0.512240 -0.100770 \n",
"3 0.580360 0.468980 0.58036 0.580360 -0.166630 0.436420 -0.333750 \n",
"4 0.580360 0.158810 0.58036 0.580360 0.246940 0.305130 -1.000000 \n",
"5 0.580360 0.468980 0.58036 0.580360 0.054223 0.409930 -1.000000 \n",
"6 0.512240 0.268470 0.58036 0.512240 -0.136200 0.257470 -1.000000 \n",
"7 0.333750 0.054223 0.40993 0.468980 -0.292210 0.136200 -1.000000 \n",
"8 0.041329 -0.100770 0.18279 0.318920 0.067262 0.067262 -0.580360 \n",
"9 -0.022182 -0.512240 0.04776 -0.009496 0.512240 -0.107670 -0.333750 \n",
"10 -0.246940 -0.436420 -0.10077 -0.028545 0.468980 -0.318920 -0.107670 \n",
"11 -0.436420 -0.436420 -0.23683 -0.292210 0.468980 -0.468980 -0.028545 \n",
"12 -0.580360 -1.000000 -0.43642 -0.387370 0.305130 -1.000000 -0.003165 \n",
"13 -1.000000 -1.000000 -0.36759 -1.000000 -0.227100 -1.000000 0.022182 \n",
"14 -1.000000 -1.000000 -0.33375 -1.000000 -0.580360 -1.000000 0.041329 \n",
"15 -1.000000 -1.000000 -1.00000 -1.000000 -1.000000 -1.000000 0.041329 \n",
"16 -1.000000 -1.000000 -1.00000 -1.000000 -1.000000 -1.000000 0.054223 \n",
"17 -1.000000 -1.000000 -1.00000 -1.000000 -1.000000 -1.000000 -0.047760 \n",
"18 -1.000000 -1.000000 -1.00000 -1.000000 -1.000000 -0.387370 -0.227100 \n",
"19 -1.000000 -0.580360 -1.00000 -1.000000 -0.436420 0.054223 -0.468980 \n",
"20 -1.000000 -0.512240 -1.00000 -1.000000 -0.080487 0.580360 -0.512240 \n",
"21 -1.000000 -1.000000 -1.00000 -1.000000 0.114660 0.580360 -0.436420 \n",
"22 -1.000000 -1.000000 -1.00000 -1.000000 0.166630 0.580360 -0.318920 \n",
"23 -1.000000 -1.000000 -1.00000 -1.000000 0.121740 0.580360 0.003165 \n",
"24 -1.000000 -1.000000 -1.00000 -1.000000 -0.034925 0.580360 0.367590 \n",
"25 -1.000000 -1.000000 -1.00000 -0.468980 -0.257470 0.580360 0.580360 \n",
"26 -1.000000 -1.000000 -1.00000 -0.349870 -0.367590 0.580360 0.580360 \n",
"27 -1.000000 -1.000000 -1.00000 -0.199750 -0.468980 0.580360 0.580360 \n",
"28 -0.333750 -1.000000 -1.00000 -0.166630 -0.409930 0.580360 0.580360 \n",
"29 -0.174620 -1.000000 -1.00000 -0.067262 -0.246940 0.580360 0.580360 \n",
"30 0.268470 -1.000000 -1.00000 -0.034925 0.080487 0.580360 0.580360 \n",
"31 0.333750 -1.000000 -1.00000 -0.009496 0.227100 0.580360 0.580360 \n",
"32 0.580360 -1.000000 -1.00000 0.022182 0.512240 0.512240 0.580360 \n",
"33 0.580360 -0.580360 -1.00000 0.028545 0.580360 0.512240 0.580360 \n",
"34 0.580360 -1.000000 -1.00000 0.028545 0.580360 0.436420 0.580360 \n",
"35 0.580360 -0.305130 -1.00000 0.028545 0.580360 0.409930 0.580360 \n",
"36 0.580360 -0.333750 -1.00000 0.022182 0.580360 0.349870 0.580360 \n",
"37 0.580360 -0.280020 -1.00000 0.028545 0.580360 0.292210 0.580360 \n",
"38 0.580360 -0.227100 -1.00000 0.028545 0.580360 0.236830 0.580360 \n",
"39 0.580360 -0.236830 -1.00000 0.034925 0.580360 0.191160 0.580360 \n",
"\n",
" 7 8 9 10 11 12 13 \\\n",
"0 0.580360 0.580360 0.067262 -0.143600 0.227100 -1.00000 0.580360 \n",
"1 0.318920 0.580360 0.067262 -0.136200 0.208590 -1.00000 0.580360 \n",
"2 -0.015834 0.580360 0.512240 0.158810 0.015834 -1.00000 0.580360 \n",
"3 -1.000000 0.580360 0.580360 0.580360 -0.047760 -1.00000 0.580360 \n",
"4 -0.191160 0.580360 0.580360 0.580360 -0.217690 -1.00000 0.580360 \n",
"5 -0.121740 0.580360 0.580360 0.580360 -0.199750 -1.00000 0.580360 \n",
"6 0.436420 0.580360 0.580360 0.580360 -0.349870 -1.00000 0.580360 \n",
"7 0.468980 0.580360 0.580360 0.580360 -0.409930 -1.00000 0.580360 \n",
"8 0.468980 0.580360 0.580360 0.580360 -0.580360 -1.00000 0.580360 \n",
"9 0.107670 0.580360 0.512240 0.512240 -0.580360 -1.00000 0.580360 \n",
"10 -0.580360 0.580360 0.292210 0.174620 -1.000000 -1.00000 0.512240 \n",
"11 -1.000000 0.580360 -0.199750 -0.305130 -1.000000 -1.00000 0.512240 \n",
"12 -0.143600 0.087183 -0.143600 -0.022182 -1.000000 -1.00000 0.174620 \n",
"13 0.166630 0.280020 -0.257470 0.208590 -1.000000 -1.00000 0.009496 \n",
"14 0.305130 -0.191160 -0.468980 0.158810 -1.000000 -0.58036 -0.208590 \n",
"15 0.333750 -0.512240 -1.000000 0.047760 -1.000000 -0.21769 -0.580360 \n",
"16 0.305130 -0.318920 -1.000000 -0.143600 -1.000000 -0.16663 -1.000000 \n",
"17 0.182790 -0.580360 -1.000000 -0.387370 -1.000000 -0.13620 -1.000000 \n",
"18 -0.114660 -1.000000 -1.000000 -1.000000 -1.000000 0.31892 -1.000000 \n",
"19 -0.136200 -1.000000 -1.000000 -1.000000 -1.000000 0.58036 -1.000000 \n",
"20 -0.080487 -1.000000 -1.000000 -1.000000 -1.000000 0.51224 -1.000000 \n",
"21 -0.143600 -1.000000 -1.000000 -1.000000 -1.000000 0.51224 -1.000000 \n",
"22 0.107670 -1.000000 -1.000000 -1.000000 -1.000000 0.51224 -1.000000 \n",
"23 0.367590 -1.000000 -1.000000 -1.000000 -1.000000 0.43642 -0.468980 \n",
"24 0.580360 -1.000000 -1.000000 -1.000000 -1.000000 0.43642 -0.512240 \n",
"25 0.580360 -1.000000 -1.000000 -1.000000 -1.000000 0.40993 -0.436420 \n",
"26 0.580360 -1.000000 -1.000000 -1.000000 0.121740 0.40993 -0.268470 \n",
"27 0.580360 -1.000000 -1.000000 -1.000000 0.580360 0.38737 -0.136200 \n",
"28 0.580360 -1.000000 -1.000000 -1.000000 0.580360 0.43642 0.054223 \n",
"29 0.580360 -1.000000 -0.512240 -0.367590 0.468980 0.46898 0.292210 \n",
"30 0.580360 -1.000000 -0.100770 0.436420 -1.000000 0.51224 0.387370 \n",
"31 0.580360 -1.000000 0.093942 0.512240 0.121740 0.58036 0.580360 \n",
"32 0.580360 -1.000000 0.034925 0.512240 0.580360 0.58036 0.512240 \n",
"33 0.580360 -1.000000 -0.199750 0.409930 0.580360 0.58036 0.468980 \n",
"34 0.580360 -1.000000 -0.318920 0.349870 0.580360 0.58036 0.436420 \n",
"35 0.580360 -1.000000 -0.468980 0.292210 0.580360 0.58036 0.387370 \n",
"36 0.580360 -1.000000 -0.580360 0.318920 0.580360 0.58036 0.305130 \n",
"37 0.580360 -1.000000 -1.000000 0.305130 0.580360 0.58036 0.512240 \n",
"38 0.580360 -1.000000 -0.199750 0.409930 0.580360 0.58036 0.580360 \n",
"39 0.580360 -1.000000 0.143600 0.580360 0.580360 0.58036 0.580360 \n",
"\n",
" 14 15 16 17 18 19 \n",
"0 0.580360 -1.000000 0.580360 0.58036 0.580360 0.512240 \n",
"1 0.580360 -1.000000 0.580360 0.33375 0.580360 0.512240 \n",
"2 0.580360 -1.000000 0.580360 0.29221 0.580360 0.580360 \n",
"3 0.580360 -1.000000 0.580360 -0.14360 0.512240 0.580360 \n",
"4 0.580360 -0.580360 0.580360 -0.16663 0.387370 0.580360 \n",
"5 0.387370 -0.268470 0.580360 -0.10077 0.280020 0.580360 \n",
"6 0.034925 -0.166630 0.034925 -0.58036 -0.080487 0.580360 \n",
"7 -0.409930 0.054223 -0.318920 -1.00000 0.060722 0.580360 \n",
"8 -1.000000 0.257470 -1.000000 -1.00000 -0.367590 0.580360 \n",
"9 -1.000000 0.468980 -1.000000 -1.00000 -0.580360 0.580360 \n",
"10 -1.000000 0.580360 -1.000000 -1.00000 -1.000000 0.580360 \n",
"11 -1.000000 0.580360 -1.000000 -1.00000 -1.000000 0.580360 \n",
"12 -1.000000 0.580360 -1.000000 -1.00000 -1.000000 0.047760 \n",
"13 -1.000000 0.580360 -1.000000 -1.00000 -1.000000 -0.028545 \n",
"14 -1.000000 0.580360 -1.000000 -1.00000 -1.000000 -0.367590 \n",
"15 -1.000000 0.580360 -1.000000 -1.00000 -1.000000 -0.580360 \n",
"16 -1.000000 0.580360 -1.000000 -0.58036 -1.000000 -1.000000 \n",
"17 -1.000000 0.580360 -1.000000 -0.58036 -1.000000 -1.000000 \n",
"18 -0.512240 0.580360 -1.000000 -1.00000 -1.000000 -1.000000 \n",
"19 -0.512240 0.580360 -1.000000 -1.00000 -1.000000 -1.000000 \n",
"20 -0.409930 0.580360 -1.000000 -1.00000 -1.000000 -1.000000 \n",
"21 -0.409930 0.580360 -1.000000 -0.58036 -1.000000 -1.000000 \n",
"22 -0.387370 0.580360 -1.000000 -0.58036 -1.000000 -1.000000 \n",
"23 -0.387370 0.580360 -1.000000 -0.40993 -1.000000 -1.000000 \n",
"24 -0.349870 0.580360 -0.580360 -0.19975 -1.000000 -1.000000 \n",
"25 -0.387370 0.580360 -0.468980 0.43642 -1.000000 -1.000000 \n",
"26 -0.409930 0.580360 -0.409930 0.51224 -1.000000 -1.000000 \n",
"27 -0.436420 0.580360 -0.305130 0.40993 -1.000000 -1.000000 \n",
"28 -0.468980 0.580360 -0.080487 0.58036 -0.468980 -1.000000 \n",
"29 -0.436420 0.136200 -0.041329 0.58036 -0.166630 -1.000000 \n",
"30 -0.409930 0.217690 -0.028545 0.58036 -0.182790 -1.000000 \n",
"31 -0.318920 0.151140 -0.003165 0.58036 0.512240 -1.000000 \n",
"32 -0.292210 0.060722 0.054223 0.58036 0.580360 -1.000000 \n",
"33 -0.292210 -0.054223 0.409930 0.58036 0.512240 -1.000000 \n",
"34 -0.128920 -0.107670 0.580360 0.58036 0.580360 -1.000000 \n",
"35 0.067262 -0.246940 0.580360 0.58036 0.580360 -1.000000 \n",
"36 0.280020 -0.318920 0.580360 0.58036 0.580360 -1.000000 \n",
"37 0.580360 -0.333750 0.580360 0.58036 0.580360 -1.000000 \n",
"38 0.468980 -0.367590 0.580360 0.58036 0.580360 -1.000000 \n",
"39 0.580360 -0.349870 0.580360 0.58036 0.580360 -1.000000 "
]
},
"execution_count": 12,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"df = discretizeDfs[(coord,csv)]\n",
"df = df.apply(lambda x: x.astype(float))\n",
"print(df.shape)\n",
"df\n"
]
},
{
"cell_type": "code",
"execution_count": 13,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"<matplotlib.axes._subplots.AxesSubplot at 0x7feaa9a935f8>"
]
},
"execution_count": 13,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"image/png": "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
"text/plain": [
"<Figure size 432x288 with 2 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"sns.heatmap(df, annot=False, cmap='Greys', vmin=-1.0, vmax=1.0)"
]
},
{
"cell_type": "code",
"execution_count": 19,
"metadata": {},
"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>0</th>\n",
" <th>1</th>\n",
" <th>2</th>\n",
" <th>3</th>\n",
" <th>4</th>\n",
" <th>5</th>\n",
" <th>6</th>\n",
" <th>7</th>\n",
" <th>8</th>\n",
" <th>9</th>\n",
" <th>10</th>\n",
" <th>11</th>\n",
" <th>12</th>\n",
" <th>13</th>\n",
" <th>14</th>\n",
" <th>15</th>\n",
" <th>16</th>\n",
" <th>17</th>\n",
" <th>18</th>\n",
" <th>19</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>(0.51224, 0.33375, 0.04133)</td>\n",
" <td>(0.58036, 0.58036, 0.58036)</td>\n",
" <td>(-0.43642, -0.36759, -0.33375)</td>\n",
" <td>(-0.19975, -0.16663, -0.06726)</td>\n",
" <td>(-0.16663, 0.24694, 0.05422)</td>\n",
" <td>(0.58036, 0.58036, 0.51224)</td>\n",
" <td>(-0.43642, -0.31892, 0.00316)</td>\n",
" <td>(-0.14360, 0.16663, 0.30513)</td>\n",
" <td>(0.08718, 0.28002, -0.19116)</td>\n",
" <td>(0.06726, 0.06726, 0.51224)</td>\n",
" <td>(-0.02218, 0.20859, 0.15881)</td>\n",
" <td>(0.58036, 0.58036, 0.46898)</td>\n",
" <td>(0.51224, 0.58036, 0.58036)</td>\n",
" <td>(-0.51224, -0.43642, -0.26847)</td>\n",
" <td>(0.58036, 0.58036, 0.58036)</td>\n",
" <td>(-0.05422, -0.10767, -0.24694)</td>\n",
" <td>(-0.30513, -0.08049, -0.04133)</td>\n",
" <td>(0.58036, 0.33375, 0.29221)</td>\n",
" <td>(0.51224, 0.58036, 0.58036)</td>\n",
" <td>(0.04776, -0.02855, -0.36759)</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>(0.26847, 0.33375, 0.58036)</td>\n",
" <td>(-0.51224, -0.43642, -0.43642)</td>\n",
" <td>(0.04776, -0.10077, -0.23683)</td>\n",
" <td>(-0.38737, -1.00000, -1.00000)</td>\n",
" <td>(0.08049, 0.22710, 0.51224)</td>\n",
" <td>(0.25747, 0.13620, 0.06726)</td>\n",
" <td>(-1.00000, -1.00000, -0.58036)</td>\n",
" <td>(-0.11466, -0.13620, -0.08049)</td>\n",
" <td>(-0.51224, -0.31892, -0.58036)</td>\n",
" <td>(0.51224, 0.29221, -0.19975)</td>\n",
" <td>(0.43642, 0.51224, 0.51224)</td>\n",
" <td>(-1.00000, 0.12174, 0.58036)</td>\n",
" <td>(0.43642, 0.40993, 0.40993)</td>\n",
" <td>(0.38737, 0.58036, 0.51224)</td>\n",
" <td>(0.28002, 0.58036, 0.46898)</td>\n",
" <td>(0.21769, 0.15114, 0.06072)</td>\n",
" <td>(0.03492, -0.31892, -1.00000)</td>\n",
" <td>(0.40993, 0.58036, 0.58036)</td>\n",
" <td>(-0.18279, 0.51224, 0.58036)</td>\n",
" <td>(-0.58036, -1.00000, -1.00000)</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>(-0.58036, -1.00000, -1.00000)</td>\n",
" <td>(0.46898, 0.15881, 0.46898)</td>\n",
" <td>(0.58036, 0.40993, 0.18279)</td>\n",
" <td>(0.51224, 0.46898, 0.31892)</td>\n",
" <td>(-0.13620, -0.29221, 0.06726)</td>\n",
" <td>(0.34987, 0.29221, 0.23683)</td>\n",
" <td>(-0.22710, -0.46898, -0.51224)</td>\n",
" <td>(-0.14360, 0.10767, 0.36759)</td>\n",
" <td>(0.58036, 0.58036, 0.58036)</td>\n",
" <td>(-1.00000, -1.00000, -0.51224)</td>\n",
" <td>(0.31892, 0.30513, 0.40993)</td>\n",
" <td>(-0.34987, -0.40993, -0.58036)</td>\n",
" <td>(-0.21769, -0.16663, -0.13620)</td>\n",
" <td>(-0.58036, -1.00000, -1.00000)</td>\n",
" <td>(-0.43642, -0.46898, -0.43642)</td>\n",
" <td>(-1.00000, -1.00000, -1.00000)</td>\n",
" <td>(-0.02855, -0.00316, 0.05422)</td>\n",
" <td>(-0.14360, -0.16663, -0.10077)</td>\n",
" <td>(0.51224, 0.38737, 0.28002)</td>\n",
" <td>(0.51224, 0.51224, 0.58036)</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>(-1.00000, -0.33375, -0.17462)</td>\n",
" <td>(0.26847, 0.05422, -0.10077)</td>\n",
" <td>(0.58036, 0.58036, 0.58036)</td>\n",
" <td>(0.02218, 0.02855, 0.02855)</td>\n",
" <td>(0.51224, 0.46898, 0.46898)</td>\n",
" <td>(0.36759, 0.43642, 0.51224)</td>\n",
" <td>(-0.33375, -0.10767, -0.02855)</td>\n",
" <td>(0.58036, 0.31892, -0.01583)</td>\n",
" <td>(-1.00000, -1.00000, -1.00000)</td>\n",
" <td>(-0.10077, 0.09394, 0.03492)</td>\n",
" <td>(-1.00000, -1.00000, -0.36759)</td>\n",
" <td>(0.22710, 0.20859, 0.01583)</td>\n",
" <td>(0.38737, 0.43642, 0.46898)</td>\n",
" <td>(0.17462, 0.00950, -0.20859)</td>\n",
" <td>(0.03492, -0.40993, -1.00000)</td>\n",
" <td>(0.58036, 0.58036, 0.13620)</td>\n",
" <td>(0.40993, 0.58036, 0.58036)</td>\n",
" <td>(-1.00000, -0.58036, -0.58036)</td>\n",
" <td>(-0.08049, 0.06072, -0.36759)</td>\n",
" <td>(0.58036, 0.58036, 0.58036)</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>(-0.02218, -0.24694, -0.43642)</td>\n",
" <td>(-1.00000, -0.58036, -0.51224)</td>\n",
" <td>(-1.00000, -1.00000, -1.00000)</td>\n",
" <td>(0.02855, 0.02855, 0.02855)</td>\n",
" <td>(-1.00000, -1.00000, -0.46898)</td>\n",
" <td>(-0.10767, -0.31892, -0.46898)</td>\n",
" <td>(0.46898, 0.19116, -0.10077)</td>\n",
" <td>(0.33375, 0.30513, 0.18279)</td>\n",
" <td>None</td>\n",
" <td>(-0.14360, -0.25747, -0.46898)</td>\n",
" <td>(0.51224, 0.17462, -0.30513)</td>\n",
" <td>(-0.04776, -0.21769, -0.19975)</td>\n",
" <td>(0.51224, 0.51224, 0.43642)</td>\n",
" <td>(-1.00000, -1.00000, -0.46898)</td>\n",
" <td>(-0.40993, -0.31892, -0.29221)</td>\n",
" <td>(-1.00000, -0.58036, -0.26847)</td>\n",
" <td>(-0.58036, -0.46898, -0.40993)</td>\n",
" <td>(-0.19975, 0.43642, 0.51224)</td>\n",
" <td>(-1.00000, -0.46898, -0.16663)</td>\n",
" <td>(-1.00000, -1.00000, -1.00000)</td>\n",
" </tr>\n",
" <tr>\n",
" <th>5</th>\n",
" <td>(0.58036, 0.58036, 0.58036)</td>\n",
" <td>(-0.58036, -1.00000, -0.30513)</td>\n",
" <td>None</td>\n",
" <td>(-1.00000, -0.46898, -0.34987)</td>\n",
" <td>(-1.00000, -1.00000, -1.00000)</td>\n",
" <td>(0.51224, 0.43642, 0.40993)</td>\n",
" <td>(0.36759, 0.58036, 0.58036)</td>\n",
" <td>(0.10767, -0.58036, -1.00000)</td>\n",
" <td>None</td>\n",
" <td>(-0.58036, -1.00000, -0.19975)</td>\n",
" <td>(-0.14360, -0.13620, 0.15881)</td>\n",
" <td>(-1.00000, -1.00000, 0.12174)</td>\n",
" <td>(0.31892, 0.58036, 0.51224)</td>\n",
" <td>(-0.13620, 0.05422, 0.29221)</td>\n",
" <td>(-0.34987, -0.38737, -0.40993)</td>\n",
" <td>(-0.31892, -0.33375, -0.36759)</td>\n",
" <td>(0.58036, 0.58036, 0.58036)</td>\n",
" <td>(-0.58036, -0.58036, -0.40993)</td>\n",
" <td>(-0.58036, -1.00000, -1.00000)</td>\n",
" <td>None</td>\n",
" </tr>\n",
" <tr>\n",
" <th>6</th>\n",
" <td>(-1.00000, -1.00000, -1.00000)</td>\n",
" <td>(-0.33375, -0.28002, -0.22710)</td>\n",
" <td>None</td>\n",
" <td>(-0.00950, -0.02855, -0.29221)</td>\n",
" <td>(-0.03492, -0.25747, -0.36759)</td>\n",
" <td>(-0.38737, 0.05422, 0.58036)</td>\n",
" <td>(-0.33375, -1.00000, -1.00000)</td>\n",
" <td>(0.43642, 0.46898, 0.46898)</td>\n",
" <td>None</td>\n",
" <td>(-0.19975, -0.31892, -0.46898)</td>\n",
" <td>(0.40993, 0.34987, 0.29221)</td>\n",
" <td>(-0.58036, -1.00000, -1.00000)</td>\n",
" <td>(-1.00000, -1.00000, -0.58036)</td>\n",
" <td>(0.46898, 0.43642, 0.38737)</td>\n",
" <td>(-0.29221, -0.12892, 0.06726)</td>\n",
" <td>(-0.16663, 0.05422, 0.25747)</td>\n",
" <td>(-1.00000, -1.00000, -1.00000)</td>\n",
" <td>(-0.58036, -1.00000, -1.00000)</td>\n",
" <td>(0.58036, 0.58036, 0.58036)</td>\n",
" <td>None</td>\n",
" </tr>\n",
" <tr>\n",
" <th>7</th>\n",
" <td>None</td>\n",
" <td>(-1.00000, -1.00000, -1.00000)</td>\n",
" <td>None</td>\n",
" <td>(-0.03492, -0.00950, 0.02218)</td>\n",
" <td>(0.11466, 0.16663, 0.12174)</td>\n",
" <td>(0.43642, 0.30513, 0.40993)</td>\n",
" <td>(0.04133, 0.05422, -0.04776)</td>\n",
" <td>(-1.00000, -0.19116, -0.12174)</td>\n",
" <td>None</td>\n",
" <td>(0.58036, 0.58036, 0.58036)</td>\n",
" <td>(0.04776, -0.14360, -0.38737)</td>\n",
" <td>(0.58036, 0.58036, 0.58036)</td>\n",
" <td>(0.58036, 0.58036, 0.58036)</td>\n",
" <td>(0.58036, 0.51224, 0.51224)</td>\n",
" <td>(-0.51224, -0.51224, -0.40993)</td>\n",
" <td>(0.46898, 0.58036, 0.58036)</td>\n",
" <td>None</td>\n",
" <td>(0.58036, 0.58036, 0.58036)</td>\n",
" <td>(-1.00000, -1.00000, -1.00000)</td>\n",
" <td>None</td>\n",
" </tr>\n",
" <tr>\n",
" <th>8</th>\n",
" <td>None</td>\n",
" <td>None</td>\n",
" <td>None</td>\n",
" <td>(0.58036, 0.58036, 0.58036)</td>\n",
" <td>(-1.00000, -0.43642, -0.08049)</td>\n",
" <td>(-1.00000, -1.00000, -1.00000)</td>\n",
" <td>(-0.00316, 0.02218, 0.04133)</td>\n",
" <td>(0.58036, 0.58036, 0.58036)</td>\n",
" <td>None</td>\n",
" <td>(-1.00000, -1.00000, -1.00000)</td>\n",
" <td>(0.58036, 0.58036, 0.58036)</td>\n",
" <td>(-1.00000, -1.00000, -1.00000)</td>\n",
" <td>(-1.00000, -1.00000, -1.00000)</td>\n",
" <td>(-1.00000, -1.00000, -1.00000)</td>\n",
" <td>(-0.40993, -0.38737, -0.38737)</td>\n",
" <td>(0.58036, 0.58036, 0.58036)</td>\n",
" <td>None</td>\n",
" <td>(-1.00000, -1.00000, -1.00000)</td>\n",
" <td>None</td>\n",
" <td>None</td>\n",
" </tr>\n",
" <tr>\n",
" <th>9</th>\n",
" <td>None</td>\n",
" <td>None</td>\n",
" <td>None</td>\n",
" <td>(-1.00000, -1.00000, -1.00000)</td>\n",
" <td>(0.58036, 0.58036, 0.58036)</td>\n",
" <td>(0.58036, 0.58036, 0.58036)</td>\n",
" <td>(0.58036, 0.58036, 0.58036)</td>\n",
" <td>None</td>\n",
" <td>None</td>\n",
" <td>None</td>\n",
" <td>(-1.00000, -1.00000, -1.00000)</td>\n",
" <td>None</td>\n",
" <td>None</td>\n",
" <td>(0.58036, 0.58036, 0.58036)</td>\n",
" <td>(-1.00000, -1.00000, -1.00000)</td>\n",
" <td>None</td>\n",
" <td>None</td>\n",
" <td>None</td>\n",
" <td>None</td>\n",
" <td>None</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" 0 1 \\\n",
"0 (0.51224, 0.33375, 0.04133) (0.58036, 0.58036, 0.58036) \n",
"1 (0.26847, 0.33375, 0.58036) (-0.51224, -0.43642, -0.43642) \n",
"2 (-0.58036, -1.00000, -1.00000) (0.46898, 0.15881, 0.46898) \n",
"3 (-1.00000, -0.33375, -0.17462) (0.26847, 0.05422, -0.10077) \n",
"4 (-0.02218, -0.24694, -0.43642) (-1.00000, -0.58036, -0.51224) \n",
"5 (0.58036, 0.58036, 0.58036) (-0.58036, -1.00000, -0.30513) \n",
"6 (-1.00000, -1.00000, -1.00000) (-0.33375, -0.28002, -0.22710) \n",
"7 None (-1.00000, -1.00000, -1.00000) \n",
"8 None None \n",
"9 None None \n",
"\n",
" 2 3 \\\n",
"0 (-0.43642, -0.36759, -0.33375) (-0.19975, -0.16663, -0.06726) \n",
"1 (0.04776, -0.10077, -0.23683) (-0.38737, -1.00000, -1.00000) \n",
"2 (0.58036, 0.40993, 0.18279) (0.51224, 0.46898, 0.31892) \n",
"3 (0.58036, 0.58036, 0.58036) (0.02218, 0.02855, 0.02855) \n",
"4 (-1.00000, -1.00000, -1.00000) (0.02855, 0.02855, 0.02855) \n",
"5 None (-1.00000, -0.46898, -0.34987) \n",
"6 None (-0.00950, -0.02855, -0.29221) \n",
"7 None (-0.03492, -0.00950, 0.02218) \n",
"8 None (0.58036, 0.58036, 0.58036) \n",
"9 None (-1.00000, -1.00000, -1.00000) \n",
"\n",
" 4 5 \\\n",
"0 (-0.16663, 0.24694, 0.05422) (0.58036, 0.58036, 0.51224) \n",
"1 (0.08049, 0.22710, 0.51224) (0.25747, 0.13620, 0.06726) \n",
"2 (-0.13620, -0.29221, 0.06726) (0.34987, 0.29221, 0.23683) \n",
"3 (0.51224, 0.46898, 0.46898) (0.36759, 0.43642, 0.51224) \n",
"4 (-1.00000, -1.00000, -0.46898) (-0.10767, -0.31892, -0.46898) \n",
"5 (-1.00000, -1.00000, -1.00000) (0.51224, 0.43642, 0.40993) \n",
"6 (-0.03492, -0.25747, -0.36759) (-0.38737, 0.05422, 0.58036) \n",
"7 (0.11466, 0.16663, 0.12174) (0.43642, 0.30513, 0.40993) \n",
"8 (-1.00000, -0.43642, -0.08049) (-1.00000, -1.00000, -1.00000) \n",
"9 (0.58036, 0.58036, 0.58036) (0.58036, 0.58036, 0.58036) \n",
"\n",
" 6 7 \\\n",
"0 (-0.43642, -0.31892, 0.00316) (-0.14360, 0.16663, 0.30513) \n",
"1 (-1.00000, -1.00000, -0.58036) (-0.11466, -0.13620, -0.08049) \n",
"2 (-0.22710, -0.46898, -0.51224) (-0.14360, 0.10767, 0.36759) \n",
"3 (-0.33375, -0.10767, -0.02855) (0.58036, 0.31892, -0.01583) \n",
"4 (0.46898, 0.19116, -0.10077) (0.33375, 0.30513, 0.18279) \n",
"5 (0.36759, 0.58036, 0.58036) (0.10767, -0.58036, -1.00000) \n",
"6 (-0.33375, -1.00000, -1.00000) (0.43642, 0.46898, 0.46898) \n",
"7 (0.04133, 0.05422, -0.04776) (-1.00000, -0.19116, -0.12174) \n",
"8 (-0.00316, 0.02218, 0.04133) (0.58036, 0.58036, 0.58036) \n",
"9 (0.58036, 0.58036, 0.58036) None \n",
"\n",
" 8 9 \\\n",
"0 (0.08718, 0.28002, -0.19116) (0.06726, 0.06726, 0.51224) \n",
"1 (-0.51224, -0.31892, -0.58036) (0.51224, 0.29221, -0.19975) \n",
"2 (0.58036, 0.58036, 0.58036) (-1.00000, -1.00000, -0.51224) \n",
"3 (-1.00000, -1.00000, -1.00000) (-0.10077, 0.09394, 0.03492) \n",
"4 None (-0.14360, -0.25747, -0.46898) \n",
"5 None (-0.58036, -1.00000, -0.19975) \n",
"6 None (-0.19975, -0.31892, -0.46898) \n",
"7 None (0.58036, 0.58036, 0.58036) \n",
"8 None (-1.00000, -1.00000, -1.00000) \n",
"9 None None \n",
"\n",
" 10 11 \\\n",
"0 (-0.02218, 0.20859, 0.15881) (0.58036, 0.58036, 0.46898) \n",
"1 (0.43642, 0.51224, 0.51224) (-1.00000, 0.12174, 0.58036) \n",
"2 (0.31892, 0.30513, 0.40993) (-0.34987, -0.40993, -0.58036) \n",
"3 (-1.00000, -1.00000, -0.36759) (0.22710, 0.20859, 0.01583) \n",
"4 (0.51224, 0.17462, -0.30513) (-0.04776, -0.21769, -0.19975) \n",
"5 (-0.14360, -0.13620, 0.15881) (-1.00000, -1.00000, 0.12174) \n",
"6 (0.40993, 0.34987, 0.29221) (-0.58036, -1.00000, -1.00000) \n",
"7 (0.04776, -0.14360, -0.38737) (0.58036, 0.58036, 0.58036) \n",
"8 (0.58036, 0.58036, 0.58036) (-1.00000, -1.00000, -1.00000) \n",
"9 (-1.00000, -1.00000, -1.00000) None \n",
"\n",
" 12 13 \\\n",
"0 (0.51224, 0.58036, 0.58036) (-0.51224, -0.43642, -0.26847) \n",
"1 (0.43642, 0.40993, 0.40993) (0.38737, 0.58036, 0.51224) \n",
"2 (-0.21769, -0.16663, -0.13620) (-0.58036, -1.00000, -1.00000) \n",
"3 (0.38737, 0.43642, 0.46898) (0.17462, 0.00950, -0.20859) \n",
"4 (0.51224, 0.51224, 0.43642) (-1.00000, -1.00000, -0.46898) \n",
"5 (0.31892, 0.58036, 0.51224) (-0.13620, 0.05422, 0.29221) \n",
"6 (-1.00000, -1.00000, -0.58036) (0.46898, 0.43642, 0.38737) \n",
"7 (0.58036, 0.58036, 0.58036) (0.58036, 0.51224, 0.51224) \n",
"8 (-1.00000, -1.00000, -1.00000) (-1.00000, -1.00000, -1.00000) \n",
"9 None (0.58036, 0.58036, 0.58036) \n",
"\n",
" 14 15 \\\n",
"0 (0.58036, 0.58036, 0.58036) (-0.05422, -0.10767, -0.24694) \n",
"1 (0.28002, 0.58036, 0.46898) (0.21769, 0.15114, 0.06072) \n",
"2 (-0.43642, -0.46898, -0.43642) (-1.00000, -1.00000, -1.00000) \n",
"3 (0.03492, -0.40993, -1.00000) (0.58036, 0.58036, 0.13620) \n",
"4 (-0.40993, -0.31892, -0.29221) (-1.00000, -0.58036, -0.26847) \n",
"5 (-0.34987, -0.38737, -0.40993) (-0.31892, -0.33375, -0.36759) \n",
"6 (-0.29221, -0.12892, 0.06726) (-0.16663, 0.05422, 0.25747) \n",
"7 (-0.51224, -0.51224, -0.40993) (0.46898, 0.58036, 0.58036) \n",
"8 (-0.40993, -0.38737, -0.38737) (0.58036, 0.58036, 0.58036) \n",
"9 (-1.00000, -1.00000, -1.00000) None \n",
"\n",
" 16 17 \\\n",
"0 (-0.30513, -0.08049, -0.04133) (0.58036, 0.33375, 0.29221) \n",
"1 (0.03492, -0.31892, -1.00000) (0.40993, 0.58036, 0.58036) \n",
"2 (-0.02855, -0.00316, 0.05422) (-0.14360, -0.16663, -0.10077) \n",
"3 (0.40993, 0.58036, 0.58036) (-1.00000, -0.58036, -0.58036) \n",
"4 (-0.58036, -0.46898, -0.40993) (-0.19975, 0.43642, 0.51224) \n",
"5 (0.58036, 0.58036, 0.58036) (-0.58036, -0.58036, -0.40993) \n",
"6 (-1.00000, -1.00000, -1.00000) (-0.58036, -1.00000, -1.00000) \n",
"7 None (0.58036, 0.58036, 0.58036) \n",
"8 None (-1.00000, -1.00000, -1.00000) \n",
"9 None None \n",
"\n",
" 18 19 \n",
"0 (0.51224, 0.58036, 0.58036) (0.04776, -0.02855, -0.36759) \n",
"1 (-0.18279, 0.51224, 0.58036) (-0.58036, -1.00000, -1.00000) \n",
"2 (0.51224, 0.38737, 0.28002) (0.51224, 0.51224, 0.58036) \n",
"3 (-0.08049, 0.06072, -0.36759) (0.58036, 0.58036, 0.58036) \n",
"4 (-1.00000, -0.46898, -0.16663) (-1.00000, -1.00000, -1.00000) \n",
"5 (-0.58036, -1.00000, -1.00000) None \n",
"6 (0.58036, 0.58036, 0.58036) None \n",
"7 (-1.00000, -1.00000, -1.00000) None \n",
"8 None None \n",
"9 None None "
]
},
"execution_count": 19,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"dfs[(coord, csv)]\n"
]
},
{
"cell_type": "code",
"execution_count": 21,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"0 0.580360\n",
"1 0.580360\n",
"2 0.580360\n",
"3 0.580360\n",
"4 0.580360\n",
"5 0.580360\n",
"6 0.512240\n",
"7 0.333750\n",
"8 0.041329\n",
"9 -0.022182\n",
"10 -0.246940\n",
"11 -0.436420\n",
"12 -0.580360\n",
"13 -1.000000\n",
"14 -1.000000\n",
"15 -1.000000\n",
"16 -1.000000\n",
"17 -1.000000\n",
"18 -1.000000\n",
"19 -1.000000\n",
"20 -1.000000\n",
"21 -1.000000\n",
"22 -1.000000\n",
"23 -1.000000\n",
"24 -1.000000\n",
"25 -1.000000\n",
"26 -1.000000\n",
"27 -1.000000\n",
"28 -0.333750\n",
"29 -0.174620\n",
"30 0.268470\n",
"31 0.333750\n",
"32 0.580360\n",
"33 0.580360\n",
"34 0.580360\n",
"35 0.580360\n",
"36 0.580360\n",
"37 0.580360\n",
"38 0.580360\n",
"39 0.580360\n",
"Name: 0, dtype: float64"
]
},
"execution_count": 21,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"df[0]"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# TODO:\n",
"# Cambiare il punto 1.1 da serie monovariata a gesto (vedi text_freq, extract_words, etc)\n",
"# Stampare heatmap per 1.2 (no colorare ma heatmap separate)\n",
"# Cambiare da classe di gesti (insieme di 31 csv) a gesti (singoli csv)"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.5.5"
}
},
"nbformat": 4,
"nbformat_minor": 2
}