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

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


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')

Everything not saved will be lost.
最后更新于 2022-12-06