Fakultas Ilmu Komputer UI

lab13_jumat_1806196806-checkpoint.ipynb 127 KB
Newer Older
Ahmad Dzikrul Fikri's avatar
Ahmad Dzikrul Fikri committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Nomor 1. Fungsi generate_piechart()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [],
   "source": [
    "import matplotlib.pyplot as plt\n",
    "import pandas as pd\n",
    "def generate_piechart(data, labels, title):\n",
    "    patches, texts = plt.pie(data)\n",
    "    plt.legend(patches, labels)\n",
    "    plt.title(title)\n",
    "    plt.show()\n",
    "    plt.clf()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAARUAAAD3CAYAAAAzFcDfAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4xLjEsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy8QZhcZAAAgAElEQVR4nO3deXxU1f3/8deZbCQkDLvsBAEhAYSisigCWqxQAReQ8hWLWxXLFxVqVeqC152iWKR1qXVBXLFI/Sl81aJVQUEUEQhJQFCBSMCyTvZkJnN+f9wJDiErzORM7nyej8c8IDN37v3MnTvve+52rtJaI4QQoeIyXYAQwlkkVIQQISWhIoQIKQkVIURISagIIUJKQkUIEVInFSpKqfeUUleFqpjAOBcppR4M5TjrMM2dSqlRDTlNk5RSmUqpkTW8fsz3qpR6UCl1QCm1r47j10qpHiEoNWKd7DwKYR13KqWeq+H1hl+2tdY1PoCdQDFQAPwEvAgk1/a+E30Ai4AHQzg+C3ilDp9xVLg+UyQ/aps/QOfA99+2HuPUQA/Tny2S5hHQDFgA7A78lnYE/m4d5tprXLaBZ4FtgB+4utJrCcBfgFzgMPAUEFfbNOvaUhmntU4GBgJnAXfX8X1GKaViTdfgAF2Bg1rr/5ouJILVOI+UUvHAR0AfYDR2wJwNHAQGNVSR1dgETAc2VPHabOBMoC9wGvbvv/bffn2TDngUWB74/yfA74JeuxbIxk61D4CuNYx3GLAGOALkEEhJ7JbKk8AKIB9YB3QPet8Tg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0aBiYmL0woULQ9X3a5Xefvvt5ps3b06s+HvBggW5l1xyST7A4sWLW9500037tm7dmhUcKH6/n/Hjx/cYPnx4fk5Ozpbvvvsu85FHHtmTm5sbV9/pDx8+vKiqQKlJ27ZtfU888cTuadOm/RT8/FdffdVk8eLFbTZs2JCdnZ2d+f777zfPyMhIqG48kUBCxeGWL1+ect555x3t/3bq1KldFi5c2ArsteaMGTM6DhgwoHffvn3TPvvss6Rhw4b17Ny5c9958+a1qTyubdu2xZ9xxhm90tPT09LT09NWrlx5tM/VwsLCmNGjR5/arVu3PuPHj+/m91fdifu0adP++/TTT5/i9XqPe+2ee+45pW/fvmmnnXZa+qxZsyo68Oa2225r361btz5nn312z3HjxnWbM2fOKQDz589v3bdv37RevXqlX3jhhd3z8/NdK1eubPrhhx82v/vuuzv17t07PTMzM2HChAmpL774YovHH3+89YoVK1rOmzevw/jx47tVnk+xsbH69ttv31/x3Nlnn108evToAr/fz7Rp0zr17Nmzz2mnnZb+j3/8owXARRdddOqSJUvcFcNPmDAhddGiRc2D5/m+fftizjnnnJ5paWnpV1xxRdfqegXo2LGjb8SIEUVxcXHHDJCRkZE4cODAgpSUFH9cXBznnHNO/pIlS5pXOZIIIaES5Tp37ly2cePGrYMHDy649tprU999993v1q1bt3Xu3LkdKg/boUMH3+rVq7/NysrKXrJkyfezZs062sl1dnZ24pNPPpmzY8eOzN27dyesXLmyyh7xu3btWnbWWWcVPPXUU62Cn1+2bFmzHTt2NNm8eXN2dnZ21saNG5Pee++95FWrViW9++67LTIyMrJWrFjx3ebNm48G2ZQpUw5v2bIle9u2bVm9evUqXrhwYesLLrigcNSoUUcefPDBH7du3ZrVp0+fo5suf/jDHw5UvPbOO+8c033n5s2bE/v3719UVc2LFy9unpGRkZidnZ350UcffTtnzpxOu3btivvNb35zaMmSJS0ASkpK1Oeff95s4sSJnuD3zp49u8PQoUMLsrOzs8aPH39k79698TV/I8caMGBA8bp161L27dsXEwhNd05OTr3G0dBkn0qUmzRp0hGAfv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dMTe8dvc8AdeFT8v/IlBD7szZUS7KuuS7DvkbMn6LEb+C7w2CsBEl0kVETN7J3CTYEyoATL4zdckYhwEipCiJCSrg+EECEloSKECCkJFSFESEmoCCFCSkJFCBFSEipCiJCSUBFChJSEihAipCRUhBAhJaEihAgpCRUhREhJqAghQkpCRQgRUhIqQoiQklARQoSUhIoQIqQkVIQQISWhIoQIKQkVIURISagIIUJKQkUIEVISKkKIkJJQEUKElISKECKkJFSEECEloSKECCkJFSFESP1/j0HYF5fB6+QAAAAASUVORK5CYII=\n",
      "text/plain": [
       "<Figure size 432x288 with 1 Axes>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "<Figure size 432x288 with 0 Axes>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "title = 'Pie chart kasus positif dan negatif Covid-19'\n",
    "labels = ['Jumlah Negatif Covid-19','Jumlah Positif Covid-19']\n",
    "data = [1000, 12000]\n",
    "generate_piechart(data,labels,title)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAVUAAAD3CAYAAACtr8d/AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4xLjEsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy8QZhcZAAAgAElEQVR4nO3de5wVdf3H8dd3d2FxAY9yF7kcBWG5KCpeyvCSJmqYNzRLKzX8/UIyMjXdzHQyNaw0IzFLTX8lJmhl5FZ4zWtlaGCyLDddvIKIcLju/fv74zuLh2WvMOd8z+X9fDz2sbtn5sx8zpw57/nOd+bMGGstIiISjQLfBYiI5BKFqohIhBSqIiIRUqiKiERIoSoiEiGFqohIhHYrVI0xfzXGXBBVMeE07zfG3BjlNDswz8XGmOMimM41xph7duF5VcaYz+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Lli7t06WJvvfXWvh19bn29bj0v4ptCNYNNmDBh84oVK4oB7rzzzl4HHnjgqNLS0tHnnXfe0KYALSkpOeSyyy4beNBBB5U+9dRTPZ5//vmSww8/fOSYMWNGTZgw4YBVq1Z1ATjiiCNGTpkyZfBhhx02cv/99x/z7LPPlkycOHHY0KFDx06fPn0gwNKlS7vut99+Y84666z4iBEjRp988sn7b9q0qQBg3333PfD9998vAnjuuedKjjjiiJEAzzzzTMkhhxxSOmrUqNGHHHJI6aJFi4oBZs6c2XvixInDjj766AOGDh06durUqYPSvgBFPFCoZqi6ujrmz5+/54EHHrjt1Vdf7fbII4/0WrBgQWVlZWVFQUGBveuuu3oDbNu2rWDs2LHbXnvttcrjjjtuy/Tp04f86U9/Wrl48eIlF1xwwYdXXnnl9rt+du3atXHBggVLL7roorXnnHPO8LvvvvutysrKxXPmzOmzevXqQoCqqqpuU6dOXbts2bKKnj17Nv74xz9us6U8bty46pdffrlyyZIlFddff/27V1111fbwrKioKHn00UffWLJkyeJ58+btvWLFirbuJiuSE9SnmmFqamoKSktLRwMceeSRm775zW9+eNttt/V5/fXXS8aNGzcKoLq6uqBfv371AIWFhVx44YXrAV577bXi5cuX73H88cePAGhsbKRv377b7yx55plnbgAYN27ctuHDh28bOnRoHcDgwYNr3njjja69e/duGDBgQO3EiRO3AHz5y19eN3PmzH7seCvrHXz00UeF55577n5VVVXdjDG2rq5u+x0xJ0yYsLF3794NAMOHD69euXJl8fDhw+tam5ZILlCoZpimPtXkx6y15pxzzlk3a9asnW6L3LVr18aioqLt4w0fPnzbwoULW7wpXbdu3SxAQUEBxcXF208dKygooL6+3gDseBfnj/8vLCy0jY3ueNm2bdu27+FcffXV+x577LGbnnjiiZVLly7tevzxx49Mqm37PAoLC3cIXJFcpd3/LHDyySdvfOyxx/Z+9913iwDWrFlTuGzZsq7NxzvooIOqP/roo6Inn3yyO0BNTY1ZsGBBa7dtbtH777/ften5Dz74YK+jjjpqM8CgQYNqX3zxxRKAuXPn7t00/saN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pDk4U888UT3adOmDZ03b96K0cOGFHVr3NK7R2FNHxLv7BcGaT4oAI4H5gKr4mXl34+Xle/bznMkz2nrmwXefPPNrmecccagtWvXdqmtrS0YPHjw9j6/OXPm9N5nn31q58+fvzL5ylPtqa2tNVOmTBlaUVGxR0FBAatWrSpuGrZixYpu06ZNiz/12COrh8Tqh7FueUlXW5tTzdFdMBC4DrgmXlY+D7izasakpzzXJBlILdUscOmllw6ZNm3aB8uWLau44447VtXU1Gx/30aOHLntnXfeKX7zzTd3ugD0008/3b20tHR0aWnp6NmzZ8eSh9100039+/XrV7dkyZKK//73vxV1dXUFAAbLPv37suceXYr/+69n49RXl6T8BWaXIuAs4Ml4WfmSeFn5lHhZeSYfmJM0U6hmgU2bNhUOGTKkDuD+++/vnTzs4IMP3jpr1qxVp5122vCqqqodgvX444/fUllZWVFZWVkRHmjaLpFIFO6zzz51hYWF3Hnnnb0bGhpg0+p+e9R8sF+/vboX/+W3M801M+7g7y8tSP0LzF6lwD3A6/Gy8rN8FyOZQbv/benAKVBRq66uLujfv/9BTf9fcskla7773e++98UvfnFY//79aw877LAtb731VnHyc0466aTNP/zhD9855ZRTDnj66aeXdWQ+l1122QeTJ08e9uijj+796QmfqOtesgdsen9wgXUXou7ftzd//r/bOeVL3+DXt14f6WvMQaXA7+Nl5f8CyqpmTPq753rEI136L0neXfqvZmN3Eu8Opr56pyP/6bJk1QeMmv/5dsezls371TzY2W9U+TIf+E7VjEkdOt9Ycot2//NRfXVX1q3cn3UrS30Gag47CXglXlb+QLysvMO3GJfcoFDNJ9bCxvf680HlGGo2tnkeq+w2A5wPLI6XlZ/juxhJH4XqjhobGxtz88yh2i3dWFs5is1rBoHNiPfddT3lfPdTX2BuvKz8YbVa80NGfLgyyOtr166N5VSwutbpAD5cPjqTTo+y1rJuSz3dEm/4LiVdzkat1rygA1VJXnnllX5FRUX3AGPJgQ2OsQ1FRTUb+pjGuuL2x043S7fEGwx69Ra61G5of+zsOlDVnoeBr1fNmLTWdyESP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size 432x288 with 1 Axes>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "<Figure size 432x288 with 0 Axes>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "title = 'Pie chart jenis kelamin DDP1 geofisika angkatan 2018'\n",
    "labels = ['Perempuan','Laki-laki']\n",
    "data = [1, 3]\n",
    "generate_piechart(data,labels,title)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAOcAAAD3CAYAAADmIkO7AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4xLjEsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy8QZhcZAAAgAElEQVR4nO2deXhU1d3HP2eWTBISsrAGEhIUQgYyIER2EEQQFbVUqrhblbrg0lYr5q2+1qptaW37Wpcq1aoBtyJVXOKGiiIgWlAhwAybhgRI2JMQCElm5rx/3AmNGLKQmTl3JufzPPMYZ+495zuX+d5z7ll+PyGlRKPRmA+LagEajaZptDk1GpOizanRmBRtTo3GpGhzajQmRZtTozEpEWtOIcS7QohrQlT2J0KIWaEou5k6q4UQpwShnKeEEP97EueNFUJsCeiY3vj6CiF+KoRY3l5tjep6SAixTwhRHqwyW1nveCHEpnDW2S6klKZ9AcVADVAN7AaeAxKCUG4McD+wBTgcqOdZICvw+SfArCB+j+eBh1RfzxY0fgT8/ASf/RRYHqR6MgL/pt1N8J2LgcmqdZzoFQkt5wVSygRgGDAcuDcIZS4CLgQuB5KAIcAa4KwglP09hBDWYJcZIjKBDWGqZ7+Uck8Y6jqGEMIWzvqCguq7Q1vubMDDwNuBvz+hUesGXAe4gYPA+0DmCcqcjHHnzmim3k+AB4EVwCHgA6Bro89fBcqBSmAZMKjRZ88DTwLvYLTKNwD1QB1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dGYFG1OjcakaHNqNCZFm1OjMSnanBqNSfl/9dfzwRE+XjUAAAAASUVORK5CYII=\n",
      "text/plain": [
       "<Figure size 432x288 with 1 Axes>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "<Figure size 432x288 with 0 Axes>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "title = 'Pie Chart jenis film favorit'\n",
    "labels = ['SciFi','Drama','Comedy','Action','Romance']\n",
    "data = [0.2, 0.05, 0.2, 0.25, 0.3]\n",
    "generate_piechart(data,labels,title)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAOcAAAD3CAYAAADmIkO7AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4xLjEsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy8QZhcZAAAgAElEQVR4nO3deXxU1f3/8deZTGZCIAz7FoWBhrAkoKiA7BT9usVai60LVm0tylKkiP7a+fpVf9dvqUVrd/WLreC+W60tU2l/rT+iuEMR2Rcl7PsyJBBCkrnfP84NjCEbWebcmfk8H488GObeueeTybznnLsr27YRQriPx3QBQoiaSTiFcCkJpxAuJeEUwqUknEK4lIRTCJeScBqilBqjlFpfx/SnlVJz4llTTNuWUup553FPpVSJUiqtJdsxQSl1j1LqSVPt18cV4VRKTVJKLXU+BLuUUm8rpUabrgtAaTOVUquUUkeVUtuVUq8ppQY1Zbm2bb9n23a/JtQ1w3nPypRST9cwfbJSapPzni5SSvVoZJ1bbdtuY9t2ZS11FCmlLm7Msk2zbftB27Ynm66jNsbDqZSaDfwGeBDoCvQEHge+abKuGL8FfgTMBDoAucCfgQKTRQE7gTnAguoTlFLj0O/nN9E1bwZeimt1ouls2zb2AwSAEuA7dcwzDP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YdCFuID1nLCvyHnAOMN90KSmmGL3+f64E8xTpOWtjBa4AHgEGmC4lyb0I3I0V2WW6ELeRcNbFCqShbwHxAHCW4WqSzWrgh1iRQtOFuJWEsyGsQAb6/ND/BDoYribRFQMW8Ds337jWDSScZ8IKBIAfA7OQq82fqcPAPOA3WJE9potJBBLOxrAC3YH70dfNlQPp61aE3jUyHytSYriWhCLhbAorcDb62qi3AmcbrsZtlqI3qL2OFZGrIjaChLM56EMBLwNuBwpI3d7UBsLAI7Khp+kknM1ND3m/jx7ypsrBDKuBN9C3P0i4Gwa5lYSzpVgBBVyEHvZeAbQ1W1CzW4oO5BtYkfWmi0lGEs54sALpwGh0SC8H8swW1ChR4H1OBTJh7hCdqCScJugNSeOcn/FAjtF6alYJrAI+Qt8VepHsAokvCacbWIEewAigH5AL9HX+7RSnCsqAtcBK4HP0kPVTrMjROLUvaiDhdDMr0B4d0tifHkArICPm39jHKmYJx4B99fx8CayXo3XcR8KZbPTFtFsB5ViRY6bLEY0n4RTCpeR8TiFcSsIphEtJOIVwKQmnEC4l4RTCpSScQriUhFMIl5JwCuFSEk4hXErCKYRLSc4VUIIAAABUSURBVDiFcCkJpxAuJeEUwqUknEK4lIRTCJeScArhUhJOIVxKwimES0k4hXApCacQLiXhFMKlJJxCuJSEUwiXknAK4VISTiFcSsIphEtJOIVwqf8FGa8voSMMQRcAAAAASUVORK5CYII=\n",
      "text/plain": [
       "<Figure size 432x288 with 1 Axes>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "<Figure size 432x288 with 0 Axes>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "title = 'Cases Covid-19 di Indonesia'\n",
    "data = pd.read_csv('patient.csv', sep =',')\n",
    "data = data.dropna(subset=['gender'])\n",
    "jumlah_berdasarkan_gender = data.groupby(['gender']).count()\n",
    "values = [jumlah_berdasarkan_gender['age'].female, jumlah_berdasarkan_gender['age'].male]\n",
    "labels = ['perempuan','laki-laki']\n",
    "generate_piechart(values,labels,title)\n"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Nomor 2. Fungsi generate_histogram()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {},
   "outputs": [],
   "source": [
    "def generate_histogram(data,title, labels=['Rentang', 'Frekuensi'], jumlah_bins = 5, warna = 'black'):\n",
    "    plt.figure(figsize = (12,5))\n",
    "    plt.hist(data, bins = jumlah_bins, edgecolor = warna)\n",
    "    plt.xlabel(labels[0])\n",
    "    plt.ylabel(labels[1])\n",
    "    plt.title(title)\n",
    "    plt.show()\n",
    "    plt.clf()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 72,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAs0AAAFNCAYAAAD7F1LEAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4xLjEsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy8QZhcZAAAdrklEQVR4nO3de7imdV3v8fenmRFQ8EAMOHEaNcTwANpEukkyQPJAgqVuTN2jWyPTFCvS0autVtYGt7Vpp2ngaUoUSDOI8jAhiKYhgyIHUTEdTg7MgCKYqDB+++O5Z/O4Wmv9njWz7vU8w3q/rmtdz33/7tN3/dbvko/3/J77TlUhSZIkaWY/Me4CJEmSpElnaJYkSZIaDM2SJElSg6FZkiRJajA0S5IkSQ2GZkmSJKnB0CxpoiT5bpKHdsvvTfKmEY/7SJLVPdd2YZKXzPM5n5jkK/N5zh1Vkg1JjtqG456U5Iah9auSPGnEYyvJT8/1mpIWH0OzpAXThaKbk9xvqO0lSS7cul5Vu1bV1+d67qp6alWtneG6b+zC0SuntL+qa3/jXK83X6rqU1V14LiuP58mJYBW1SOr6sL5Pm+SP0vysSltpyY5b76vJWnyGJolLbSlwIljuO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UJEmSGgzNkiRJUoOhWZIkSWowNEuSJEkNhmZJkiSpwdAsSZIkNfwnQal29rmk7GYAAAAASUVORK5CYII=\n",
      "text/plain": [
       "<Figure size 864x360 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "<Figure size 432x288 with 0 Axes>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "data = pd.read_csv('data_pelanggan.txt', sep = ' ', names = ['name','order','price'])\n",
    "labels = ['Rentang', 'Frekuensi']\n",
    "title ='Nilai Mahasiswa mata kuliah X'\n",
    "generate_histogram(data['order'],title,labels)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAs0AAAFNCAYAAAD7F1LEAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4xLjEsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy8QZhcZAAAa7UlEQVR4nO3de/RmdV0v8PenGRQQU8kBR26jhhdSwZrIW60CNUsUPSlpmlNZrE511NMNbFXW6iYda9UprYOaTikmosalUokkuxg5eANEo5T7AINXVBLBz/nj2SM/p5nZD/Ob5/c8zLxea/3Ws+/78/zYa+Y9Xz577+ruAAAAO/YN8y4AAAAWndAMAAAjhGYAABghNAMAwAihGQAARgjNAAAwQmgGmJOq+rWqeuO861iuqvrbqtqwg3XrqqqravVK1wWwOwnNAEmq6sKq+kxV3XPetWxPVb2hqn5zmcd4aFW9tapurqrPVdVHqupnq2rVco7b3d/X3Rt3saa1VXVOVV0/hOt126w/pKrOrqpPV9W1VfWTy6kVYFcJzcBebwhq35mkkzxjrsXMSFU9JMlFSa5J8qjuvk+S5yRZn+Tecyztq0nemeQHdrD+jUk+meTgJE9L8ttV9T0r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BghBsBAQBghNAMAAAjhGYAABghNAMAwAihGQAARgjNAAAw4v8DiOGR68YHIPsAAAAASUVORK5CYII=\n",
      "text/plain": [
       "<Figure size 864x360 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "<Figure size 432x288 with 0 Axes>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "data = pd.read_csv('patient.csv',sep=',')\n",
    "data = data.dropna(subset=['age'])\n",
    "labels = ['Rentang', 'Frekuensi']\n",
    "title ='Age data Covid-19'\n",
    "generate_histogram(data['age'],title,labels)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 73,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAtQAAAFNCAYAAAAgrPjmAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4xLjEsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy8QZhcZAAAd5klEQVR4nO3debxkZX3n8c83NLIoLkhjkK3RoAkYZbRDNEaiYhAJBkzUwahBoyEqKjohIxpHyEJGEp04k8QFIopGWeJKjAuEUTBRo41BaFCkIw3d7LjRBkRpf/mjTofiUnVv3X5udd3q+3m/XvWqc56z/erp04cvp5+qk6pCkiRJ0ub5qUkXIEmSJE0zA7UkSZLUwEAtSZIkNTBQS5IkSQ0M1JIkSVIDA7UkSZLUwEAtaWok+UGSh3XT703ypyNu96kkR4+5ts8leekC7/NJSa5cyH1OqyRrkzxtM7Z7cpL1ffOXJ3nyiNtWkp+Z7zElLT0GakmLQheYbkpy3762lyb53Kb5qrpfVX1rvvuuqmdU1RlDjntSF5xePaP9NV37SfM93kKpqs9X1SMndfyFtFjCaVXtX1WfW+j9Jnlrks/MaHtbkk8s9LEkLT4GakmLyTLguAk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UkSZLUwC8lSpIkSQ0M1JIkSVIDA7UkSZLUwEAtSZIkNTBQS5IkSQ0M1JIkSVKD/wTymBwVHmG0lAAAAABJRU5ErkJggg==\n",
      "text/plain": [
       "<Figure size 864x360 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "<Figure size 432x288 with 0 Axes>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "data = pd.read_csv('nilai mahasiswa.txt')\n",
    "bins = 5\n",
    "labels = ['Rentang', 'Frekuensi']\n",
    "title ='Nilai Mahasiswa mata kuliah X'\n",
    "generate_histogram(data['Nilai'],title,labels,bins)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Nomor 3. Fungsi generate_barchart()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "metadata": {},
   "outputs": [],
   "source": [
    "def generate_barchart(sumbu_x,sumbu_y,title,labels):\n",
    "    plt.figure(figsize = (12,5))\n",
    "    plt.bar(sumbu_x,sumbu_y)\n",
    "    plt.xlabel(labels[0])\n",
    "    plt.ylabel(labels[1])\n",
    "    plt.title(title)\n",
    "    plt.show()\n",
    "    plt.clf()    "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 95,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAs0AAAFNCAYAAAD7F1LEAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4xLjEsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy8QZhcZAAAgAElEQVR4nO3debgkZX328e8tQ2TfZCAo4ICiuG/jiiCKmiBuUXEP4Ktioq+olxu+GsWYGEPcNS5AVAyIIhoEMQgiiKyyMyBGDSKgCIMKAiII/t4/6jnSHM5M9Zk5fU6fme/nuubq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pwk5wHPBz7Wln+fbmjGyVV1O3AF3ZjvGW2rJM2W3PENoSRJkqSp2NMsSZIk9TA0S5IkST0MzZIkSVIPQ7MkSZLUw9AsSZIk9TA0S5IkST0MzZIkSVIPQ7MkSZLU4/8DOh5UV01aPVsAAAAASUVORK5CYII=\n",
      "text/plain": [
       "<Figure size 864x360 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "<Figure size 432x288 with 0 Axes>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "data = pd.read_csv('score mahasiswa.txt', sep = ' ')\n",
    "sumbu_x = data['nama']\n",
    "sumbu_y = data['score']\n",
    "labels = ['Nama mahasiswa', 'Frekuensi']\n",
    "title ='Score quiz Mahasiswa mata kuliah X'\n",
    "generate_barchart(sumbu_x,sumbu_y,title,labels)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 36,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAs0AAAFOCAYAAAB9gyBqAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4xLjEsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy8QZhcZAAAf2ElEQVR4nO3deZhkdX3v8ffHQaMIEQkDFwEdQSWiICohqIkLrgkgaDBiUCFxiddEjNdtNF7BXL0hmhgX3MAFVKIiGgWJKKKIGEUHQQHR4MVhEYTBiIAim9/7xzktRdPTv+qZPt01M+/X8/RTZz/frlOn+tO/+tU5qSokSZIkrd6dFrsASZIkadIZmiVJkqQGQ7MkSZLUYGiWJEmSGgzNkiRJUoOhWZIkSWowNEtaryU5P8ljF2A/905yfZIlQ+9r2n7/OMkP52lbpyV5/nxsay3rODjJGYtdhySNMjRLWmclWZnkCdOm3S5wVdWDquq0xnaWJakkG61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JWkiGZkkaxo3A0/sbPkykJF5BSZLGZGiWpGHcQnfDoJdNn5FknyRnJjk7yZeSbNVPPyzJMUm+mGRlkqcneXOSc5OcPHXHziSvT/LtJOclOTL9HRGm7ePoJO9N8rUk/9XfPIUkByf5ZJITgS+m85Z+W+cmeWa/XJIckeT7SU4CthzZ9sqpfwaS7JbktBn2/4Ikn+/vXihJ6zxDsyQN513Agf0d3kadAexRVQ8FPg68amTeDsBewL7AR4GvVNXOwA39dIAjquoPqurBwN2AvVez/2XAY/r13ptk6jbMjwAOqqo96a7ZuivwEOAJdHcE3Jru1to7AjsDLwAeOe4vneRvgX2A/Wa5M50krVP8aE6SBlJV1yb5MN3tlEfD47bAJ/pwehe6W1RP+XxV3dzfRnsJ3S2Lobt18rJ++HFJXgVsDGxOd6vlE2co4biq+g1wYZKLgN/vp59SVf/dD/8R8LGquhW4MslXgT8AHj0y/fIkXx7z134OcBldYL55zHUkaeLZ0ixJw3ob8Dzg7iPT3knXWrwz8NfAXUfm3QjQh92b67aL6f8G2KhvLX43sH+//lHT1h81/UL8U+O/HJl2h64ds6w/5RZu+/sxfd/n0YX7bWfZriStcwzNkjSgvkX3OLrgPOUewE/64YPmuMmpkHp1kk2A2a5o8Ywkd0qyA7A98MMZljkdeGaSJUmW0rUwf6uffkA/fWvgcSPrrAQe3g//2bTtnU33j8AJSe41h99LkiaaoVmShvcvwOhVNA4DPpnka8DVc9lQVV1D17p8LvAZ4NuzLP5D4KvA54EXVdWvZ1jm34HvAd8Fvgy8qqp+2k+/sN/Pe/rtTHkD8Pa+/ltnqPEM4BXASZN89RBJmgtvoy1J66EkRwOfq6rjF7sWSVof2NIsSZIkNdjSLEmSJDXY0ixJkiQ1GJolSZKkBkOzJEmS1GBoliRJkhoMzZIkSVKDoVmSJElq+P+LJKn7S+BJHAAAAABJRU5ErkJggg==\n",
      "text/plain": [
       "<Figure size 864x360 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "<Figure size 432x288 with 0 Axes>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "data = pd.read_csv('histori penjualan.txt', sep = ' ')\n",
    "sumbu_x = data['nama_produk']\n",
    "sumbu_y = data['jumlah']\n",
    "labels = ['Nama produk', 'Frekuensi']\n",
    "title ='Histori penjualan toko X'\n",
    "generate_barchart(sumbu_x,sumbu_y,title,labels)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 38,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAtQAAAFNCAYAAAAgrPjmAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4xLjEsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy8QZhcZAAAgAElEQVR4nO3dd5hkZZ328e/NjESJMiDRARcDIKIOqK/uyi6YEIXXCIqyyooBRXf1XcEEBly8dM2iYgBUxEVAQFEEUURUwoBKVljiyAiDklWSv/ePc1qKprqnp09XV7d8P9fVV9WJz6/Oqa6++6nnVKWqkCRJkjQ5yw27AEmSJGk2M1BLkiRJHRioJUmSpA4M1JIkSVIHBmpJkiSpAwO1JEmS1IGBWmoluSjJdlO8z/lJKsncCay7XZJFU9n+skryj0l+M8waltXSak5yWJIPTlMtpyX5twHu/4AkXx/U/sdpd6CPq2s7Sf41yRmDqGk2SnJVkh3a++9M8qVBtzMMg3jNlibLQC21qmqLqjpt2HUMU1X9tKoePYh9p7FPkguT3JFkUZJvJXlcl/12rTnJm5IsTHJnksP6LP+3JJcnuT3JSUnW71KvNJ2q6kNV1feflJnwT3wXvmZrJjFQS5ounwTeAuwDrAU8CjgOeN4wiwKuAz4IfGX0giTPAD4E7ExT85XAkYMuqP3nY+ivzzOlDkma6XyhlFojb1+OHiIwuhenXe//JTm/7Wn9cpJ1k3w/yW1Jfphk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FVPQ74Ys/+DwPe1M5/3xjtjtmeJP09MFBL0vDdBexC0yv9cuAHwBvar10myaOSrNKuu22STdqx0y8DzgBWA+4AbkmyLvDcCbR5BvDSdv/PAtZs768P/Kmqvg58FHgi94XkG5M8FOgdD70qsLit9RWTevSSNMvNXfoqkqRBq6o7kuwEnAJ8ELgYOK+9+G8JTeAG+AXNeOTHAacD366qvyb5JXARcAXwswk0+T7gyPaiw58Ai4HbgO2AjyT5K3A38IaqujnJF2l6ra8CzunZz3tohqVc3S5fdVIHQJJmsVSNfvdQkvT3LskKwL1VdU+SpwKfq6qth12XJM1G9lBL0oPTxsBR7dCRu4DXDrkeSZq17KGWJEmSOvCiREmSJKkDA7UkSZLUgYFakiRJ6sBALUmSJHVgoJYkSZI6MFBLkiRJHfx/kERfBJrMDJsAAAAASUVORK5CYII=\n",
      "text/plain": [
       "<Figure size 864x360 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "<Figure size 432x288 with 0 Axes>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "title = 'jumlah pasien Covid-19 berdasarkan kebangsaan di Indonesia'\n",
    "data = pd.read_csv('patient.csv', sep =',')\n",
    "data = data.dropna(subset=['nationality'])\n",
    "jumlah_berdasarkan_nasionalisasi = data.groupby(['nationality']).count()\n",
    "sumbu_y = [jumlah_berdasarkan_nasionalisasi['province'].indonesia,jumlah_berdasarkan_nasionalisasi['province'].foreigner]\n",
    "sumbu_x = ['indonesia','foreigner']\n",
    "labels = ['kebangsaan','frekuensi']\n",
    "generate_barchart(sumbu_x,sumbu_y,title,labels)"
   ]
  }
 ],
 "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.7.4"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}