Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
55397dfb
Commit
55397dfb
authored
Dec 17, 2019
by
Julien Chaumond
Browse files
CsvPipelineDataFormat: Fix for single-column
parent
2fde5a24
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
transformers/pipelines.py
transformers/pipelines.py
+1
-1
No files found.
transformers/pipelines.py
View file @
55397dfb
...
...
@@ -136,7 +136,7 @@ class CsvPipelineDataFormat(PipelineDataFormat):
if
self
.
is_multi_columns
:
yield
{
k
:
row
[
c
]
for
k
,
c
in
self
.
column
}
else
:
yield
row
[
self
.
column
]
yield
row
[
self
.
column
[
0
]
]
def
save
(
self
,
data
:
List
[
dict
]):
with
open
(
self
.
output
,
'w'
)
as
f
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment