Given a toy dataset as follows:
0 start_date end_date
1 2019 2021
Read the second row:
df.iloc[0]
Out:
0
start_date 2019
end_date 2021
Name: 1, dtype: object
Read columns:
df.columns
Out:
Out[218]: Index(['start_date', 'end_date'], dtype='object', name=0)
How could I reset index 0 starting from the secode row? Thanks.
start_date end_date
0 2019 2021