“`python array([1, 2, 3, 4, 5, 6]) “`. 在本例中,我们使用ravel 方法将多级索引列转换为一维数组:. “`python df.columns.ravel()
確定! 回上一頁