Skip to content

Commit 4d42ead

Browse files
committedFeb 14, 2020
Visual Scatter & Heat
1 parent 5038110 commit 4d42ead

7 files changed

+1088
-7
lines changed
 

‎Function_loop_conditional.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1101,7 +1101,7 @@
11011101
"name": "python",
11021102
"nbconvert_exporter": "python",
11031103
"pygments_lexer": "ipython3",
1104-
"version": "3.6.2"
1104+
"version": "3.7.4"
11051105
}
11061106
},
11071107
"nbformat": 4,

‎Pre mid.ipynb

+33-2
Original file line numberDiff line numberDiff line change
@@ -1345,9 +1345,21 @@
13451345
},
13461346
{
13471347
"cell_type": "code",
1348-
"execution_count": 24,
1348+
"execution_count": 2,
13491349
"metadata": {},
1350-
"outputs": [],
1350+
"outputs": [
1351+
{
1352+
"ename": "NameError",
1353+
"evalue": "name 'pd' is not defined",
1354+
"output_type": "error",
1355+
"traceback": [
1356+
"\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
1357+
"\u001b[1;31mNameError\u001b[0m Traceback (most recent call last)",
1358+
"\u001b[1;32m<ipython-input-2-28ea75d70eb8>\u001b[0m in \u001b[0;36m<module>\u001b[1;34m\u001b[0m\n\u001b[0;32m 1\u001b[0m \u001b[0mlabels\u001b[0m \u001b[1;33m=\u001b[0m \u001b[1;33m[\u001b[0m\u001b[1;34m'ภาษาอีสาน'\u001b[0m \u001b[1;33m,\u001b[0m \u001b[1;34m'ภาษาไทย'\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m----> 2\u001b[1;33m \u001b[0mData\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mpd\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mDataFrame\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mfrom_records\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m[\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m,\u001b[0m\u001b[0mcolumns\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mlabels\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m 3\u001b[0m \u001b[1;32mfor\u001b[0m \u001b[0mv\u001b[0m \u001b[1;32min\u001b[0m \u001b[0mrange\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;36m32\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 4\u001b[0m \u001b[0mdf\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mpd\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mread_excel\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;34m'data.xlsx'\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0msheet_name\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mv\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0musecols\u001b[0m \u001b[1;33m=\u001b[0m \u001b[1;34m'B:C'\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mskipfooter\u001b[0m \u001b[1;33m=\u001b[0m \u001b[1;36m1\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 5\u001b[0m \u001b[0mData\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mpd\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mconcat\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m[\u001b[0m\u001b[0mData\u001b[0m\u001b[1;33m,\u001b[0m\u001b[0mdf\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0maxis\u001b[0m \u001b[1;33m=\u001b[0m \u001b[1;36m0\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mignore_index\u001b[0m \u001b[1;33m=\u001b[0m \u001b[1;32mTrue\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n",
1359+
"\u001b[1;31mNameError\u001b[0m: name 'pd' is not defined"
1360+
]
1361+
}
1362+
],
13511363
"source": [
13521364
"labels = ['ภาษาอีสาน' , 'ภาษาไทย']\n",
13531365
"Data = pd.DataFrame.from_records([],columns = labels)\n",
@@ -1356,6 +1368,25 @@
13561368
" Data = pd.concat([Data,df], axis = 0, ignore_index = True)"
13571369
]
13581370
},
1371+
{
1372+
"cell_type": "code",
1373+
"execution_count": 3,
1374+
"metadata": {},
1375+
"outputs": [
1376+
{
1377+
"ename": "NameError",
1378+
"evalue": "name 'df' is not defined",
1379+
"output_type": "error",
1380+
"traceback": [
1381+
"\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
1382+
"\u001b[1;31mNameError\u001b[0m Traceback (most recent call last)",
1383+
"\u001b[1;32m<ipython-input-3-1ac174be4d67>\u001b[0m in \u001b[0;36m<module>\u001b[1;34m\u001b[0m\n\u001b[1;32m----> 1\u001b[1;33m \u001b[0mdf\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mdf\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mdropna\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m",
1384+
"\u001b[1;31mNameError\u001b[0m: name 'df' is not defined"
1385+
]
1386+
}
1387+
],
1388+
"source": []
1389+
},
13591390
{
13601391
"cell_type": "code",
13611392
"execution_count": 25,

‎Pre-MidTerm.ipynb

+1-3
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@
3636
" f[k1[i]] = k2[i]\n",
3737
" else:\n",
3838
" f[k2[i]] = k1[i]\n",
39-
" return(f)\n",
40-
" \n",
41-
" "
39+
" return(f)"
4240
]
4341
},
4442
{

‎Visualize Data Distribution.ipynb

+1,052
Large diffs are not rendered by default.

‎Visualize array data.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@
374374
"cell_type": "markdown",
375375
"metadata": {},
376376
"source": [
377-
"## Visualize array"
377+
"## Visualize array by heat map"
378378
]
379379
},
380380
{

‎colormap.png

29 KB
Loading

‎colors-3.jpg

93.8 KB
Loading

0 commit comments

Comments
 (0)
Please sign in to comment.