Skip to content

Commit

Permalink
[docs] fix csv encoding option (#327)
Browse files Browse the repository at this point in the history
* fix docs

* fix indent

* rm space

---------

Co-authored-by: Shogo Ujiie <[email protected]>
  • Loading branch information
ujiuji1259 and Shogo Ujiie authored Oct 11, 2023
1 parent 2afb51d commit a933055
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/task_on_kart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,8 @@ If you want to dump csv file with other encodings, you can use `encoding` parame

.. code:: python
from gokart.file_processor import CsvFileProcessor
def output(self):
return self.make_target('file_name.csv', encoding='cp932')
return self.make_target('file_name.csv', processor=CsvFileProcessor(encoding='cp932'))
# This will dump csv as 'cp932' which is used in Windows.

0 comments on commit a933055

Please sign in to comment.