I have a dataframe in which some of the dates are indented as below:
1 20/09/2021
5 11/9/2021
7 8/9/2021
8 7/9/2021
12 26/08/2021
...
813 28/08/2020
814 28/08/2020
815 26/08/2020
816 26/08/2020
817 23/08/2020
while trying to pass pd.to_datetime
function, the results comes in different date format as below:
1 2021-09-20>>>>> This is the right format that I want (yyyy-mm-dd)
5 2021-11-09 >>>>>Here the format has changed(yyyy-dd-mm)
7 2021-08-09
8 2021-07-09 >>>>
12 2021-08-26
...
813 2020-08-28
814 2020-08-28
815 2020-08-26
816 2020-08-26
817 2020-08-23
If someone could help me with this one please?