As researchers, we typically collect lots of data files. Sometimes though, we make a poor file-naming decision... Re-naming 1000 files manually is out of the question...
In this set of three videos, I show you how to write simple Python code that renames lots of files at once! π This video series introduces you to regular expressions, which are super useful for processing text-like data. But don't worry, I explain everything step-by-step!
In Part 1, we learn how to append a phrase to a file name:
In Part 2, we learn how to remove a phrase from a file name:
In Part 3, I show you a super simple way to turn a file name, or its portion, to lower-case or upper-case:
Python for academics πβπ
Check out my YouTube series Python for academics πβπ, where I teach you you various ways in which you can use Python to automate your everyday academic life!
πΉ Check out the full playlist here.
π All code that we develop together in this series can be accessed through GitHub:
Stay tuned for more videos! π»