Lines Matching refs:data
204 def _guess_quote_and_delimiter(self, data, delimiters):
222 matches = regexp.findall(data)
260 # there is *no* delimiter, it's a single column of quoted data
272 if dq_regexp.search(data):
280 def _guess_delimiter(self, data, delimiters):
283 each row. However, due to malformed data, it may not. We don't want
294 For performance reasons, the data is evaluated in chunks, so it can
295 try and evaluate the smallest portion of the data possible, evaluating
299 data = list(filter(None, data.split('\n')))
304 chunkLength = min(10, len(data))
310 while start < len(data):
312 for line in data[start:end]:
338 total = float(min(chunkLength * iteration, len(data)))
339 # (rows of consistent data) / (number of rows) = 100%
353 skipinitialspace = (data[0].count(delim) ==
354 data[0].count("%c " % delim))
368 skipinitialspace = (data[0].count(d) ==
369 data[0].count("%c " % d))
378 skipinitialspace = (data[0].count(delim) ==
379 data[0].count("%c " % delim))
384 # Creates a dictionary of types of data in each column. If any