Skip to content
Advertisement

Tag: substring

Rename column containing substring – Pandas

I need to rename columns in containing specific substring. In my case I am using data with columns that are named a specific date dd/mm/yyyy. I want to rename the column based on the yyyy of the column name (eg. 30/06/2020 rename FY1920). Approach I have tried is as follows: also tried: I am sure there is an easy way.

Advertisement