Skip to content

BUG: Arrow Binary View Types Don't Print When containing missing values #59883

Open
@WillAyd

Description

@WillAyd

Pandas version checks

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of pandas.

  • I have confirmed this bug exists on the main branch of pandas.

Reproducible Example

Note that this example produces output:


In [10]: import pandas as pd
    ...: import pyarrow as pa
    ...: 
    ...: ser = pd.Series(["foo", "longer_than_binary_prefix", ''], dtype=pd.ArrowDtype(pa.string_view()))

In [11]: ser
Out[11]: 
0                          foo
1    longer_than_binary_prefix
2                             
dtype: string_view[pyarrow]

While this does not:

In [12]: import pandas as pd
    ...: import pyarrow as pa
    ...: 
    ...: ser = pd.Series(["foo", "longer_than_binary_prefix", None], dtype=pd.ArrowDtype(pa.string_view()))

In [13]: ser
Out[13]: 

This might actually be an upstream bug with pyarrow (@jorisvandenbossche typically knows best)



### Issue Description

Values are not printing

### Expected Behavior

Values should print

### Installed Versions

In [14]: pa.__version__
Out[14]: '17.0.0'

In [15]: pd.__version__
Out[15]: '2.2.3+44.g3dfa33cf2d'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Arrowpyarrow functionalityBugNeeds DiscussionRequires discussion from core team before further actionStringsString extension data type and string data

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions