Python Library/Pandas
Day 6. Simple visualization with pandas
hellobird
2019. 6. 15. 20:02
from pandas import *
In [2]:
df = read_csv("./ml/movies.csv", sep = ",")
In [4]:
df.head()
Out[4]:
In [6]:
df.plot.bar()
Out[6]:
In [8]:
df.plot.box()
Out[8]:
In [9]:
df.plot.hist()
Out[9]:
In [10]:
df.plot()
Out[10]:
In [12]:
%matplotlib inline # % means it is a magic function
In [13]:
ratings = read_csv("./ml/ratings.csv", sep = ",")
ratings.head()
Out[13]:
In [14]:
ratings.describe()
Out[14]:
In [15]:
ratings.hist(column = 'rating', figsize = (15,10))
Out[15]:
In [16]:
ratings.boxplot(column = "rating", figsize = (15,20))
Out[16]:
In [ ]: