維度轉換2D轉1D Y = df3[['明年度']] # 2D Y = Y.to_numpy() t1 = Y.shape[0] Y = np.reshape(Y, (t1,)) # 2D 轉 1D Doc navigation← if 文字轉數字