【发布时间】:2019-04-04 09:12:24
【问题描述】:
【问题讨论】:
-
使用
np.unique()和axis参数。 -
请始终将代码、数据和错误消息作为文本直接发布在 SO 上,而不是图片。
标签: python pandas numpy jupyter-notebook numpy-ndarray
【问题讨论】:
np.unique() 和axis 参数。
标签: python pandas numpy jupyter-notebook numpy-ndarray
如果你想删除列表中的相同元素,你可以这样做:
for i in reversed(range(len(list))):
if l[i] in l[0:i]:
l.pop(i)
【讨论】: