Pandas: how to designate starting row to extract data

后端 未结 2 1310
日久生厌
日久生厌 2021-01-21 02:34

I am using Pandas library and Python.

I have an Excel file that has some heading information on the top of an Excel sheet which I do not need for data extraction.

2条回答
  •  Happy的楠姐
    2021-01-21 02:55

    You can use pd.read_csv and specify skiprows=4:

    df = pd.read_csv('test.csv', skiprows=4)
    

提交回复
热议问题