ek.get_timeseries

How do i remove the extra row from my data set.

df = ek.get_timeseries (["CAD=;CAD1M=;CAD2M=;CAD3M=;CAD4M=;CAD5M=;CAD6M=;CAD7M=;CAD8M=;CAD9M=;CAD10M=;CAD11M=;CAD1Y="],

start_date="2024-01-01",

end_date="2024-03-31",

fields="CLOSE")

df

1710982008383.png


Thank you.

Best Answer

Answers

  • That worked. I just added inplace to keep the change

    df.reset_index(inplace=True)


    Thank you.