数据分析练习-电影数据分析
总共三个文件
1、user
包含以下参数:
UserID
Gender
Age
Occupation
zip-code
2、movies
包含以下参数:
movield
title
Genres
3、ratings
包含以下参数:
userid
movieid
rating
time
导入数据疯狂操作
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
%matplotlib inline
# 读取user
labels =['UserId','Gender','Age','Occupation','zip-code']
users = pd.read_csv('users.dat',sep = '::',names = labels)
users.head()