【发布时间】:2016-12-03 15:19:12
【问题描述】:
我知道这只是一个非常简单的问题,很可能已经在某个地方得到了回答,但是作为一个初学者,我仍然不明白,正在寻求您的启发,提前谢谢您:
我有一个临时数据框:
+----------------------------+---+
|host |day|
+----------------------------+---+
|in24.inetnebr.com |1 |
|uplherc.upl.com |1 |
|uplherc.upl.com |1 |
|uplherc.upl.com |1 |
|uplherc.upl.com |1 |
|ix-esc-ca2-07.ix.netcom.com |1 |
|uplherc.upl.com |1 |
我需要的是删除主机列中的所有冗余项,换句话说,我需要得到最终的不同结果,例如:
+----------------------------+---+
|host |day|
+----------------------------+---+
|in24.inetnebr.com |1 |
|uplherc.upl.com |1 |
|ix-esc-ca2-07.ix.netcom.com |1 |
|uplherc.upl.com |1 |
【问题讨论】: