Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions python/pyarrow/tests/test_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ def test_type_to_pandas_dtype():
(pa.string(), np.object_),
(pa.list_(pa.int8()), np.object_),
# (pa.list_(pa.int8(), 2), np.object_), # TODO needs pandas conversion
(pa.map_(pa.int64(), pa.float64()), np.object_),
]
for arrow_type, numpy_type in cases:
assert arrow_type.to_pandas_dtype() == numpy_type
Expand Down
1 change: 1 addition & 0 deletions python/pyarrow/types.pxi
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ cdef dict _pandas_type_map = {
_Type_STRING: np.object_,
_Type_LIST: np.object_,
_Type_DECIMAL: np.object_,
_Type_MAP: np.object_,
}

cdef dict _pep3118_type_map = {
Expand Down