In my data-frame, I have a column named "Colors". The data in the Colors column looks like this:
Red001.jpeg
Red002.jpeg
Red003.jpeg
Red004.jpeg
... you get the pattern...
Red999.jpeg
Blue001.jpeg
...
Blue999.jpeg
Green001.jpeg
...
Green999.jpeg
Yellow001.jpeg
...
Yellow999.jpeg
I want to change Red001.jpeg through Red999.jpeg into Red. Likewise, I need to do this with Blue, Green and Yellow as well. How can I automate this process?