【发布时间】:2018-09-29 20:30:21
【问题描述】:
由于特定原因在数据框中复制了几行数据后,我有一个如下数据集:
1 Is John there in Greece?
1.1 Is John there in Greece?
2 I last saw him in Vancoover
2.1 I last saw him in Vancoover
2.2 I last saw him in Vancoover
3 I do not remember if I saw him in the congress in mykonos
4 Happy to see you again in Athens
4.1 Happy to see you again in Athens
4.2 Happy to see you again in Athens
4.3 Happy to see you again in Athens
我的问题是如何使用 FOR 功能: 一种。仅适用于整数(“原始行”) 湾。仅适用于十进制数(“复制行”) C。将所有数字作为一个序列(原始行和复制行)
【问题讨论】:
-
我建议你重新考虑你的整个方法。行的重复不是你应该做的事情。而是创建一个行索引向量和该索引向量的重复元素。