小编Vik*_*arg的帖子

如何打印包含一些俄语的pandas数据帧

我正在研究以下类型的数据.


      itemid      category             subcategory               title
    1 10000010   ?????????     ?????????? ? ????????     Toyota Sera, 1991
    2 10000025      ??????         ??????????? ?????         ?????? ??????
    3 10000094 ?????? ???? ??????, ?????, ??????????      ?????? Steilmann
    4 10000101   ?????????     ?????????? ? ????????      Ford Focus, 2011
    5 10000132   ?????????     ???????? ? ??????????       ??????? 3.0 Bar
    6 10000152   ?????????     ?????????? ? ???????? ??? 2115 Samara, 2005

现在我运行以下命令


    import pandas as pd
    trainingData = pd.read_table("train.tsv",nrows=10, header=0,encoding='utf-8')


    trainingData['itemid'].head()
    0    10000010
    1    10000025
    2    10000094
    3    10000101
    4    10000132
    Name: itemid …

python ubuntu ipython python-2.7

1
推荐指数
1
解决办法
1221
查看次数

标签 统计

ipython ×1

python ×1

python-2.7 ×1

ubuntu ×1