We use Python's CSV Sniffer to detect the dialect from a CSV. For some reason, this Sniffer is not being able to detect the dialect from files that are upload to S3 and contains whitespaces in the end. If you try the same file locally, it works fine. Since we use smart-open to read files from S3, this problem could be related to a behavior from this library.
We use Python's CSV Sniffer to detect the dialect from a CSV. For some reason, this Sniffer is not being able to detect the dialect from files that are upload to S3 and contains whitespaces in the end. If you try the same file locally, it works fine. Since we use smart-open to read files from S3, this problem could be related to a behavior from this library.