You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Krisztian Szucs (JIRA)" <ji...@apache.org> on 2019/01/30 19:35:00 UTC

[jira] [Updated] (ARROW-4432) [Python][Hypothesis] Empty table - pandas roundtrip produces inequal tables

     [ https://issues.apache.org/jira/browse/ARROW-4432?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Krisztian Szucs updated ARROW-4432:
-----------------------------------
    Description: 
The following test case fails for empty tables:

{code:python}
import hypothesis as h
import pyarrow.tests.strategies as past

@h.given(past.all_tables)
def test_pandas_roundtrip(table):
    df = table.to_pandas()
    table_ = pa.Table.from_pandas(df)
    assert table == table_
{code}

  was:
The following test case fails for empty tables:

{code:python}
@h.given(past.all_tables)
def test_pandas_roundtrip(table):
    df = table.to_pandas()
    table_ = pa.Table.from_pandas(df)
    assert table == table_
{code}


> [Python][Hypothesis] Empty table - pandas roundtrip produces inequal tables
> ---------------------------------------------------------------------------
>
>                 Key: ARROW-4432
>                 URL: https://issues.apache.org/jira/browse/ARROW-4432
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Python
>            Reporter: Krisztian Szucs
>            Priority: Major
>              Labels: hypothesis
>
> The following test case fails for empty tables:
> {code:python}
> import hypothesis as h
> import pyarrow.tests.strategies as past
> @h.given(past.all_tables)
> def test_pandas_roundtrip(table):
>     df = table.to_pandas()
>     table_ = pa.Table.from_pandas(df)
>     assert table == table_
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)