You know those sales reports you get sent every day? The ones labelled as East-Sales-01Jan2021.xlsxEast-Sales-01Jan2021.xlsx, and so on? Say you want them called 2021–01–01 — East Sales.

You could rename them one by one, manually. Or you could use the magic of Python!

In this post, you’ll learn how to use the pathlib library to:

  1. Rename files based on patterns, and
  2. Organize files into logical folders

#python #data #automation #data-science #software-development

Automate Renaming and Organizing Files with Python
1.45 GEEK