h2oai / h2oai/datatable

import/export pandas frame with NA-aware data types

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

Description

dt.Frame is raising an error while trying to import pandas frame where columns are of `Int32` so that they can have a missing value.
```py
import pandas as pd
import datatable as dt
pf = pd.DataFrame({
'id1' : pd.Series([1, pd.NA, 3], dtype='Int32'),
'id2' : pd.Series([1, 2, 3], dtype='Int32')
})
pf.dtypes
#id1 Int32
#id2 Int32
#dtype: object
d = dt.Frame(pf)
#TypeError: Cannot create a column from
```

Moreover, I have a datatable with some NAs in integer column, when doing `to_pandas` then the whole columns is converted to float

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.