【发布时间】:2021-03-10 06:06:18
【问题描述】:
我有一个数据框
Description
0 Hi there
1 He is my family.
2 He studies in the United States.
我想在这种情况下拆分这个数据框:如果描述超过10个字符,剩下的字符应该在下一行。
预期输出:
Description
0 Hi there
1 He is my f
2 amily.
3 He studies
4 in the Uni
5 ted States
6 .
【问题讨论】:
标签: python python-3.x pandas dataframe numpy