From 28973b3ff1708056265cc7653092c9182c412409 Mon Sep 17 00:00:00 2001 From: Shogo Ujiie Date: Wed, 11 Oct 2023 19:35:59 +0900 Subject: [PATCH 1/3] fix docs --- docs/task_on_kart.rst | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/task_on_kart.rst b/docs/task_on_kart.rst index 683bfa33..14110c12 100644 --- a/docs/task_on_kart.rst +++ b/docs/task_on_kart.rst @@ -268,7 +268,9 @@ If you want to dump csv file with other encodings, you can use `encoding` parame .. code:: python - def output(self): - return self.make_target('file_name.csv', encoding='cp932') - # This will dump csv as 'cp932' which is used in Windows. - \ No newline at end of file + from gokart.file_processor import CsvFileProcessor + + def output(self): + return self.make_target('file_name.csv', processor=CsvFileProcessor(encoding='cp932')) + # This will dump csv as 'cp932' which is used in Windows. + \ No newline at end of file From ab9072e9d023b361c9f8adef8dbc79379eab6965 Mon Sep 17 00:00:00 2001 From: Shogo Ujiie Date: Wed, 11 Oct 2023 19:38:22 +0900 Subject: [PATCH 2/3] fix indent --- docs/task_on_kart.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/task_on_kart.rst b/docs/task_on_kart.rst index 14110c12..3a950f26 100644 --- a/docs/task_on_kart.rst +++ b/docs/task_on_kart.rst @@ -270,7 +270,7 @@ If you want to dump csv file with other encodings, you can use `encoding` parame from gokart.file_processor import CsvFileProcessor - def output(self): - return self.make_target('file_name.csv', processor=CsvFileProcessor(encoding='cp932')) - # This will dump csv as 'cp932' which is used in Windows. + def output(self): + return self.make_target('file_name.csv', processor=CsvFileProcessor(encoding='cp932')) + # This will dump csv as 'cp932' which is used in Windows. \ No newline at end of file From ded167ad226fd64abe2722eb8c5e7a9ff867aa94 Mon Sep 17 00:00:00 2001 From: Shogo Ujiie Date: Wed, 11 Oct 2023 19:38:47 +0900 Subject: [PATCH 3/3] rm space --- docs/task_on_kart.rst | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/task_on_kart.rst b/docs/task_on_kart.rst index 3a950f26..69702df4 100644 --- a/docs/task_on_kart.rst +++ b/docs/task_on_kart.rst @@ -273,4 +273,3 @@ If you want to dump csv file with other encodings, you can use `encoding` parame def output(self): return self.make_target('file_name.csv', processor=CsvFileProcessor(encoding='cp932')) # This will dump csv as 'cp932' which is used in Windows. - \ No newline at end of file