I’m looking to change the date format from 02/01/2021 to 2/1/21. What’s the possible solution?
I tried slicing:
start = 20
df["year"]= df["year"].astype(str)
df["year"]= df["year"].str.slice(start)
I know it’s wrong, but I don’t have any idea how to do this.