I am a newbie who is on a steep learning curve which involves transferring a long, multi-step process from Excel into python. Because I had no idea what I was doing at first, I basically just followed all the old excel macro steps in pandas, it broadly worked, and I ended up with a pandas df containing some filenames that use the cp command to create new files (based on images I already have in a folder). This is the final step of the process. The commands look like this:
cp specificimagename.jpg destinationfolder/veryspecificfilename
I had a lightbulb moment and realised that maybe, rather than going through the hassle of generating these commands in my pandas df then manually pasting them into Terminal at the end, I could just move them using Python commands as part of the script! It seems I need to use Shutil but all the examples I find on Stack Overflow are doing more complex things than I want to do. Can anyone suggest how I could do this?
Thanks!!