Skip to content
Snippets Groups Projects
Commit fdcc08a8 authored by Cornelia Michlits's avatar Cornelia Michlits
Browse files

Bug fix sniff too large files

parent 6a11744b
No related branches found
No related tags found
1 merge request!81New stable release
...@@ -22,7 +22,7 @@ def determine_datatypes(path, enum=False, enum_tol=0.0001,separator = None): ...@@ -22,7 +22,7 @@ def determine_datatypes(path, enum=False, enum_tol=0.0001,separator = None):
fh = open(path, 'rb') fh = open(path, 'rb')
if separator == None: if separator == None:
with open(path) as csvfile: with open(path) as csvfile:
dialect = csv.Sniffer().sniff(csvfile.read(1024)) dialect = csv.Sniffer().sniff(csvfile.readline())
separator = dialect.delimiter separator = dialect.delimiter
# Load a file object: # Load a file object:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment