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

[Python] Support protocols to extract Arrow objects from third-party classes

    XMLWordPrintableJSON

Details

    Description

      In the style of NumPy's _array_, we should be able to ask inputs to pa.array, pa.Table.from_X, ... whether they can convert themselves to Arrow objects. This would allow for example to turn objects that hold an Arrow object internally to expose them directly instead of going a conversion path.

      My current use case involves Pandas ExtensionArray instances that internally have Arrow objects and should be reused when we pass the whole DataFrame to pa.Table.from_pandas.

      Attachments

        Issue Links

          Activity

            People

              jorisvandenbossche Joris Van den Bossche
              uwe Uwe Korn
              Votes:
              0 Vote for this issue
              Watchers:
              4 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 - 5h 10m
                  5h 10m