Removing header column from pandas dataframe

前端 未结 4 629
眼角桃花
眼角桃花 2020-12-09 08:46

I have the foll. dataframe:

df

   A   B
0  23  12
1  21  44
2  98  21

How do I remove the column names A and B

4条回答
  •  情深已故
    2020-12-09 09:10

    I had the same problem but solved it in this way:

    df = pd.read_csv('your-array.csv', skiprows=[0])
    

提交回复
热议问题