From 1452420183ecee37536cef0c253feba4299c4c0b Mon Sep 17 00:00:00 2001 From: David Anthoff Date: Thu, 16 May 2019 12:43:56 -0700 Subject: [PATCH] Use the correct module name in a method definition --- src/CSVFiles.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CSVFiles.jl b/src/CSVFiles.jl index cc4b887..2e2953b 100644 --- a/src/CSVFiles.jl +++ b/src/CSVFiles.jl @@ -84,7 +84,7 @@ function _loaddata(file) end end -function TableTraits.getiterator(file::CSVFile) +function IteratorInterfaceExtensions.getiterator(file::CSVFile) res = _loaddata(file) it = TableTraitsUtils.create_tableiterator([i for i in res[1]], [Symbol(i) for i in res[2]]) @@ -97,7 +97,7 @@ function TableTraits.get_columns_copy_using_missing(file::CSVFile) return NamedTuple{(Symbol.(colnames)...,), Tuple{typeof.(columns)...}}((columns...,)) end -function TableTraits.getiterator(s::CSVStream) +function IteratorInterfaceExtensions.getiterator(s::CSVStream) res = TextParse.csvread(s.io, s.delim; stringarraytype=Array, s.keywords...) it = TableTraitsUtils.create_tableiterator([i for i in res[1]], [Symbol(i) for i in res[2]])