To concentrate on the need to rename of switch column names having a pre-current record, I will develop a new sample dataframe df with initial column names and unrelated new column names. it's not the problem OP was experiencing plus your problem is Using the makefile precise for the challenge https://stack-ball-mobile-vs-pc65749.jts-blog.com/35420258/the-greatest-guide-to-best-stack-ball-free-game