Joris Van den Bossche created ARROW-13612:
---------------------------------------------

             Summary: [Python] Allow specifying a custom type for converting 
ExtensionScalar to python object
                 Key: ARROW-13612
                 URL: https://issues.apache.org/jira/browse/ARROW-13612
             Project: Apache Arrow
          Issue Type: Test
          Components: Python
            Reporter: Joris Van den Bossche


As a follow-up on ARROW-13541 
(https://github.com/apache/arrow/pull/10904#discussion_r686609844), we could 
have a mechanism that the ExtensionType can control the behaviour of 
{{ExtensionScalar.as_py()}} method.

Similarly as we have {{\_\_arrow_ext_class\_\_}} for using an ExtensionArray 
subclass for the array object, we could indeed have a way to specify a custom 
scalar wrapper.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to