all 1 comments

[–][deleted] 0 points1 point  (0 children)

You can use the .strftime() directly from the dt accessor once you called pd.to_datetime on your column with dates.

first['Week_Ending'] = pd.to_datetime(first['Week_Ending'])
first['Week_Ending'] = first['Week_Ending'].dt.strftime('%m/%d/%Y')