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

[Python] add a field() method to StructType that returns the user a field

    XMLWordPrintableJSON

Details

    Description

      Joris suggested here "we could also add a field() method that returns you a field? (that is more discoverable than [], and would be consistent with a Schema and with StructArray (to get the child array for that field)".

       

      Completion of this issue would also mean updating the example in the API docs for StructType to mention `.field()`.

      Attachments

        Issue Links

          Activity

            People

              anjakefala Anja Boskovic
              anjakefala Anja Boskovic
              Votes:
              0 Vote for this issue
              Watchers:
              3 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 - 2h 20m
                  2h 20m