You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@arrow.apache.org by "Wes McKinney (JIRA)" <ji...@apache.org> on 2019/06/20 16:19:00 UTC

[jira] [Created] (ARROW-5668) [Python] Display "not null" in Schema.__repr__ for non-nullable fields

Wes McKinney created ARROW-5668:
-----------------------------------

             Summary: [Python] Display "not null" in Schema.__repr__ for non-nullable fields
                 Key: ARROW-5668
                 URL: https://issues.apache.org/jira/browse/ARROW-5668
             Project: Apache Arrow
          Issue Type: Improvement
          Components: Python
            Reporter: Wes McKinney
             Fix For: 0.14.0


Minor usability improvement

{code}
schema = pa.schema([pa.field('a', pa.int64(), nullable=False)])

In [11]: schema                                                                                                                           
Out[11]: a: int64

In [12]: schema[0]                                                                                                                        
Out[12]: pyarrow.Field<a: int64 not null>
{code}

I'd like to see

{code}
In [11]: schema                                                                                                                           
Out[11]: a: int64 not null
{code}

or similar



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