Python 3.9 datatable to.csv() gives error when I use sep argument

Viewed 27

I'm trying to write python code for saving datatable Frame to .csv with semicolon as separator.

When I try to do that I receive error. The issue is not present when I use fread function. Also, to_csv() works well when separator is not specified. According to documentation to_csv() should take sep as argument.

Error: Method datatable.Frame.to_csv() got an unexpected keyword argument sep

My code (df is a pandas data frame):

import datatable as dt
...
dtf = dt.Frame(df)
dtf.to_csv('test.csv', sep=';')

Win10

Python version: 3.9.13

datatable version: 1.0.0

Thank you for help

1 Answers

As @ThePyGuy suggested in the comments I've checked documentation of different versions of the package and it seems that all separator was introduced in v1.1.0 which is still on development.

Thank you for guiding me

Related