Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-5668

[Python] Display "not null" in Schema.__repr__ for non-nullable fields

    XMLWordPrintableJSON

    Details

      Description

      Minor usability improvement

      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>
      

      I'd like to see

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

      or similar

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jorisvandenbossche Joris Van den Bossche
                Reporter:
                wesm Wes McKinney
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h