You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Joris Van den Bossche (JIRA)" <ji...@apache.org> on 2019/06/07 14:20:00 UTC
[jira] [Comment Edited] (ARROW-2037) [Python]: Add tests for
ARROW-1941 cases where pandas inferred type is 'empty'
[ https://issues.apache.org/jira/browse/ARROW-2037?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16858692#comment-16858692 ]
Joris Van den Bossche edited comment on ARROW-2037 at 6/7/19 2:19 PM:
----------------------------------------------------------------------
You get an "empty" inferred type if you have an object dtype with no rows or only missing values:
{code:python}
In [43]: s = pd.Series([], dtype=object)
In [44]: pd.api.types.infer_dtype(s, skipna=True)
Out[44]: 'empty'
In [45]: s = pd.Series([None, None], dtype=object)
In [46]: pd.api.types.infer_dtype(s, skipna=True)
Out[46]: 'empty'
{code}
Not sure if that is what was meant, but the roundtrip for that is currently working, so can add a test for that.
was (Author: jorisvandenbossche):
You get an "empty" inferred type if you have an object dtype with no rows or only missing values:
{code:python}
In [43]: s = pd.Series([], dtype=object)
In [44]: pd.api.types.infer_dtype(s, skipna=True)
Out[44]: 'empty'
In [45]: s = pd.Series([None, None], dtype=object)
In [46]: pd.api.types.infer_dtype(s, skipna=True)
Out[46]: 'empty'
{code}
Not sure if that is what was meant, but the roundtrip for that is currently working, so can add a test for that.
> [Python]: Add tests for ARROW-1941 cases where pandas inferred type is 'empty'
> ------------------------------------------------------------------------------
>
> Key: ARROW-2037
> URL: https://issues.apache.org/jira/browse/ARROW-2037
> Project: Apache Arrow
> Issue Type: Bug
> Components: Python
> Affects Versions: 0.8.0
> Reporter: Phillip Cloud
> Assignee: Phillip Cloud
> Priority: Major
> Fix For: 0.14.0
>
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)