1.[column for column in df] 
2.df.columns.values 返回 array 
3.list(df) 
4.df.columns 返回Index,可以通过 tolist(), 或者 list(array) 转换为list

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-02
  • 2021-06-17
  • 2021-07-01
  • 2022-12-23
  • 2021-05-17
  • 2021-07-31
猜你喜欢
  • 2022-12-23
  • 2022-02-10
  • 2022-12-23
  • 2022-12-23
  • 2021-11-03
相关资源
相似解决方案