Tugas Olah Data - (Fadilah Ahmad Romadon)
Tugas Olah Data - (Fadilah Ahmad Romadon)
Tugas Olah Data - (Fadilah Ahmad Romadon)
https://drive.google.com/file/d/105l4Smo_HrXOGrC8MXYW0YsAVM8Tqwbm/view
?usp=drivesdk
3
1 from google.colab import files
2 uploaded = files.upload()
Pilih FileTidak ada file yang dipilih Upload widget is only available when the cell has been
executed in the current browser session. Please rerun this cell to enable.
Saving supermarket_sales.csv to supermarket_sales.csv
1 import pandas as pd
2 import numpy as np
3 import matplotlib.pyplot as plt
4 import seaborn as sns
5
6 df=pd.read_csv('./supermarket_sales.csv')
7 df.head()
1df.shape
(1000, 17)
1df.columns
1df.hist
1labels = ['female','male']
2quantity = [12, 22]
3colors = ['yellowgreen','lightskyblue']
([<matplotlib.patches.Wedge at 0x7f2e1b9e0730>,
<matplotlib.patches.Wedge at 0x7f2e1b831150>],
[Text(-0.984679633992433, 0.49031216423879237, 'female'),
Text(0.9846796798987664, -0.49031207204642946, 'male')],
[Text(-0.5370979821776907, 0.26744299867570487, '35.3%'),
Text(0.5370980072175089, -0.2674429483889615, '64.7%')])