How to find a smart solution to turn Year_Q to datetime? I tried to use
pd.to_datetime(working_visa_nationality[\'Year_Q\'])
but got
My solution with regex.
df['Year_Q'] = pd.to_datetime(df['Year_Q'].str.replace(r'\ [Q1]+', '-3-31'))