i have a dataset that uses the format '1998:q1' however this does not recognise as a temporal variable in vega lite. Is there a way to convert this in to the format 1998/01 and repeat this for the whole dataset?
Current format:
Date |
---|
1998:Q1 |
1998:Q2 |
Desired format:
Date |
---|
1998/01 |
1998/04 |
tried
df['Date']=pd.to_datetime(df['Date'],format = '%Y%M')