[
https://issues.apache.org/jira/browse/ARROW-1250?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16097840#comment-16097840
]
Wes McKinney edited comment on ARROW-1250 at 7/24/17 12:51 AM:
---------------------------------------------------------------
I agree. Having a types module might be a good approach, possibly with some
functions like {{pyarrow.types.is_integer}}, {{pyarrow.types.is_timestamp}},
etc.
was (Author: wesmckinn):
I agree. Having a types module might be a good approach, possibly with some
functions like {{pyarrow.types.is_integer}}, {{{{pyarrow.types.is_timestamp}},
etc.
> [Python] Define API for user type checking of array types
> ---------------------------------------------------------
>
> Key: ARROW-1250
> URL: https://issues.apache.org/jira/browse/ARROW-1250
> Project: Apache Arrow
> Issue Type: New Feature
> Components: Python
> Reporter: Wes McKinney
>
> We have some subclasses of {{pyarrow.lib.DataType}}, but we haven't been
> designing with the intent of writing {{isinstance(arr.type,
> pyarrow.TimestampType)}}. We should think about the public API for such
> type-checking or other type of schema validation.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)