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 [ ]:
'Python Library > Pandas' 카테고리의 다른 글
Day 6. Frequent operations with pandas - aggregation (0) | 2019.06.15 |
---|---|
Day 6. Frequent operations with pandas - subsetting, filtering, delegation (0) | 2019.06.15 |
Day 6.Movie Data Analysis Part.2 (0) | 2019.06.15 |
Day 5.Movie Data Analysis Part.1 (0) | 2019.06.13 |
Day 5.Pandas (0) | 2019.06.13 |