-2

I have a folder with huge txt. files that I want to convert to parquet. I need to convert all of the txt. files to parquet and keep the name of the txt. file, and then delete the txt. files and only keep the parquet file. I don't know how I can do access multiple files at the same time without having to manually change every single one and having to load them.

  • Use a loop over the folder's files. You can use [pathlib.glob](https://docs.python.org/3/library/pathlib.html#pathlib.Path.glob) to find all files that match a pattern and iterate over them – Panagiotis Kanavos May 20 '22 at 14:59

0 Answers0