问题
# 导入相关库
import pandas as pd
import numpy as np
import seaborn as sns
import matplotlib.pyplot as plt
%matplotlib inline
plt.style.use('ggplot')
# 导入数据
user = pd.read_csv('tianchi_mobile_recommend_train_user.csv')
user.head()
服务似乎挂掉了,但是会立刻重启的.
解决方案
每次读取100万行数据
df = pd.read_csv('tianchi_mobile_recommend_train_user.csv',nrows=1000000)