users.dat ===========================================================

in the following format:

UserID::Gender::Age::Occupation::Zip-code

 

在PYTHON中导入dat文件

 

import pandas as pd

#make display smaller

pd.options.display.max_rows = 10

 

unames = [‘user_id’,’gender’,’age’,’occupation’,’zip’]

users = pd.read_table(‘users.dat’,sep=’::’,header=None,names=unames)

在PYTHON中导入dat文件

相关文章:

  • 2021-07-10
  • 2022-12-23
  • 2021-08-03
  • 2021-07-07
  • 2022-12-23
  • 2021-07-28
  • 2022-02-17
猜你喜欢
  • 2021-10-08
  • 2022-12-23
  • 2022-12-23
  • 2021-09-29
  • 2021-11-29
相关资源
相似解决方案