I am new to Pandas and Python. I want to convert Date Time Object to Date Time. I am having one column named requestDate which is for object type. Below is the one sample type
Tue, 04-Feb-2020 01:38 PM GMT+2
I am trying to convert above object into DateTime by adding following code, however its showing error unconverted data remains. I have removed GMT+2. Please help me in this.
test_df['requestDate'] = test_df['requestDate'].str.rstrip('GMT+2')
test_df['requestDate'] = pd.to_datetime(test_df['requestDate'], format='%a, %d-%b-%Y %H:%M %p')