不同长度list填充0成为数组

发布于 2022-12-06  464 次阅读


Please refresh the page if equations are not rendered correctly.
---------------------------------------------------------------

https://stackoverflow.com/questions/32037893/numpy-fix-array-with-rows-of-different-lengths-by-filling-the-empty-elements-wi
Sijxy=pd.DataFrame(Sijxyo);Sijxy=Sijxy.fillna(0)

np.pad(a, [(0, 1), (0, 1)], mode='constant')

届ける言葉を今は育ててる
最后更新于 2022-12-06