Tutorials by topic

Scripts and file automation

Use small Python scripts to handle repetitive file tasks.

Articles on this topic 5

Step by step, with examples

Scripts and file automation01

Create a CSV list of files in a folder

Scan subfolders and record file paths, extensions, sizes, and modification times in a table. Start with 4 small example files while keeping the originals and existing results intact.

PythonFile organizationCSV
Scripts and file automation02

Merge CSV files and keep the source filenames

Merge CSV files with the same column structure in order and add a source_file column. Use small datasets to check item names containing commas, missing columns, and existing output.

PythonMerging CSV filesSource tracking
Read → Run → Check

All examples are for practice. Automotive data is synthetic and used for illustration.