-
Notifications
You must be signed in to change notification settings - Fork 42
Open
Description
local csv = require 'csv'
local inspect = require 'inspect'
local f = csv.open('/tmp/a.csv', {
separator = ';',
header = true,
})
for fields in f:lines() do
print(inspect(fields))
end/tmp/a.csv:
a;b;c
1;2;3
Output:
{
a = "1",
b = "2",
c = "3"
}
{
a = ""
}
I'd expect only one iteration. The field is added here. How do I distinguish this extra result from the genuine ones?
Metadata
Metadata
Assignees
Labels
No labels