How to remove a part of a word of a column from all rows in a pandas dataframe? [duplicate]

  dataframe, pandas, python-3.x
index dates
0 2021-05-01
1 2021-06-01

I want to modify into

index dates
0 05-01
1 06-01

Source: Python-3x Questions

LEAVE A COMMENT