Loading of gzip compressed CSV files doesn't work
If you attempt to load a gzipped CSV file the operation will fail because the CSV reader is expecting string based IO not bytes.
Specifically, wrapping file_name at the line here such as file_name = io.TextIOWrapper(gzip.open(file_name, mode="r"), newline="")
fixes the issue. I suspect that the other methods for opening compressed files are also broken.
I would have just cloned the repo and filed a PR but I'm not familiar with your project and how you like to operate.