If I am having the date format in dd-mm-yyyy hh:mm:ss in some cells and another format in m-dd-yyyy hh:mm:ss then how can we bring in a same format yyyy-mm-dd so that calculation of year becomes easy
1 Like
https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.to_datetime.html
refer to pd.to_datetime documentation u can convert column to your required format
1 Like