I have a column, which is datetime type. There are null values in it. The date is stored in it in the form of 'yyyy/mm/dd' i.e 2016-01-22 and I want to change in 'mm/dd/yyyy' i.e. is 01-22-2016.
pd.to_datetime(FinalDF['P-IN.Date'],errors='coerce',format="%Y/%m/%d")
The above code is what I tried. Can anyone help me out ? Thanks and Regards.