📜  读取csv文件的标头python代码示例

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

代码示例2
In [27]: df 
Out[27]: 
          A         B         C
0 -0.166919  0.979728 -0.632955
1 -0.297953 -0.912674 -1.365463
2 -0.120211 -0.540679 -0.680481
In [28]: df.columns
Out[28]: Index (['A', 'B', 'C'], dtype='object')