-- coding: utf-8 --
"""intro.ipynb
Automatically generated by Colaboratory.
Original file is located at https://colab.research.google.com/drive/13dbFQwBvjdBtJCr0Kxofq4fZCVbAMruC """
import pandas as pd
notas = pd.read_csv("ratings.csv") notas.head()
notas.shape
notas.columns = ["idusuario", "idfilme", "nota", "quando"] notas.head()
notas['nota'].unique()
notas['nota'].value_counts()
print("Média",notas['nota'].mean()) print("Mediana",notas['nota'].median())
notas.nota.plot(kind='hist')
notas.nota.describe()
import seaborn as sns
sns.boxplot(notas.nota)
filmes = pd.read_csv("movies.csv") filmes.columns = ["filmeId", "titulo", "generos"] filmes.head()
nota.query("filmeId==1")