我有如下数据集,如果注释大于10个字符,数据应该分成新行,递增计数器字段
Emp_id First_Name Last_Name SRVnum Changed_on Comment
1234 Mary Louis 911 23-03-1990 Consider the following before posting
5678 Annie French 811 24-04-1990 Have you tried searching to see if the question
预期的输出是
Emp_id First_Name Last_Name SRVnum Changed_on Comment Counter
1234 Mary Louis 911 23-03-1990 Consider t 1
1234 Mary Louis 911 23-03-1990 he followi 2
1234 Mary Louis 911 23-03-1990 ng before 3
1234 Mary Louis 911 23-03-1990 posting 4
5678 Annie French 811 24-04-1990 Have you t 1
5678 Annie French 811 24-04-1990 ried searc 2
5678 Annie French 811 24-04-1990 hing to s 3
5678 Annie French 811 24-04-1990 ee if the 4
5678 Annie French 811 24-04-1990 question 5
评论将包含新的行字符,特殊字符,空格。分裂时应该计算所有这些吗?
有什么想法吗?