May-14-2019, 06:08 AM
Hi everyone,
I am trying to select a time period based on a date index. head of data below:
I appreciate any help
Thanks
I am trying to select a time period based on a date index. head of data below:
Output: NZ
Year-Qtr
Mar-90 0.2
Jun-90 -0.5
Sep-90 -0.3
Dec-90 0.0
Mar-91 0.2
I am trying the following code to try select up until 'Mar-18'.model_data = gdp_data.loc[:'Mar-18']It is not working though, does anyone know how to select a date range when the date is the index?
I appreciate any help
Thanks