【发布时间】:2021-08-18 15:27:30
【问题描述】:
如何生成第一列 + 第二列中的值的新行?
I have CSV or TXT dataset such as:
1 [6377, 7153]
2 [22, 33, ........]
3 [132, .......]
4 [1, ......]
I would like to generate new rows which are the first column + one of the value in the second column like:
1 6377
1 7153
2 22
2 33
2 ...
2 ...
3 132
3 ...
4 1
4 ...
【问题讨论】:
-
欢迎来到 SO,不要忘记提供您尝试过的代码示例
标签: python excel pandas numpy multiple-columns