[Python] Inferring cftime._cftime.DatetimeNoLeap raises ArrowInvalid
- Dominant language
- C++
- Stars
- 17.1k
- Forks
- 4.3k
- Avg merge
- 3d 13h
- Merged PRs (30d)
- 88
Description
I have data loaded as DatetimeNoLeap that is not recognized by PyArrow.
Should this be supported by Apache Arrow?
This happens when I call pyarrow.array(data)
```
File "pyarrow/array.pxi", line 301, in pyarrow.lib.array
File "pyarrow/array.pxi", line 83, in pyarrow.lib._ndarray_to_array
File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Could not convert 2018-01-13 09:00:00 with type cftime._cftime.DatetimeNoLeap: did not recognize Python value type when inferring an Arrow data type
```
**Reporter**: [Javier](https://issues.apache.org/jira/browse/ARROW-12576)
**Note**: *This issue was originally created as [ARROW-12576](https://issues.apache.org/jira/browse/ARROW-12576). Please see the [migration documentation](https://github.com/apache/arrow/issues/14542) for further details.*
Contributor guide
Research direction
The report reproduces through pyarrow.array(data) and points to pyarrow/array.pxi; start there and review the migration documentation linked in the issue. Clarify the expected support for cftime.DatetimeNoLeap and add a regression test demonstrating the chosen behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- data
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100