【发布时间】:2018-08-02 04:45:11
【问题描述】:
我不确定我的变量 df['education'] 在打印出来时如何具有两个相同的列,而不仅仅是一个列。当我检查变量的类型时,它说它是一个系列,但是一个系列怎么会有两列呢?
df2['education']
education education
0 Higher education Higher education
1 Higher education Higher education
2 Higher education Higher education
3 Higher education Higher education
4 Higher education Higher education
5 Higher education Higher education
6 Higher education Higher education
7 Higher education Higher education
[4743 rows x 2 columns]
如何合并两者或只保留一列?
【问题讨论】:
标签: python-3.x pandas duplicates series