📌  相关文章
📜  如何将一维数组转换为二维数组 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:12.347000             🧑  作者: Mango

代码示例1
x = x.reshape(-1, 1)

# remember to check shape of your variable using x.shape, if it shows
# (y, n) then it is already 2D, if it shows (y,) instead, it is 1D.