h2oai / h2oai/datatable

[Enhancement] IO Buffer

Open
#3,093 2 comments 0 reactions 0 assignees View on GitHub
improve
Dominant language
C++
Stars
1.9k
Forks
164
Avg merge
7h 31m
Merged PRs (30d)
1

Description

Hello, is it possible to implement natively io write ?

For the moment i use this workaround, but maybe there is a better way ?

```python
import pandas, typing
from datatable import Frame

def to_jay(df: pandas.DataFrame, object_: object, *args: typing.Any, **kwargs: typing.Any) -> None:
if isinstance(object_, str):
Frame(df).to_jay(object_, *args, **kwargs)
else:
object_.write(Frame(df).to_jay(None, *args, **kwargs))
```

And maybe also implement storage_options parameter pandas-like ?

Br
Nick

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.