You are on page 1of 2

Nama : Juanda Irawan

NIM : 03071381722070
Pemrograman Python 3 Histogram
import matplotlib.pyplot as plot
nilai_siswa =
[20,15,17,80,30,35,37,38,40,75,60,95,82,45,60,87,28,67,87,70,90,87,
80,66,70,75,77]
bin_width = 10
kelompok_interval = range(0,100 + bin_width,bin_width)
plot.hist(nilai_siswa,kelompok_interval)
%matplotlib inline
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt

pd.options.display.max_rows = 8
df = pd.read_csv("Desktop/iris.csv")
df
df['sepal.width'].hist()

You might also like