Skip to content

Commit

Permalink
Rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
danepitkin committed Jul 6, 2023
1 parent b8102cf commit 6ffb5e5
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions python/pyarrow/table.pxi
Original file line number Diff line number Diff line change
Expand Up @@ -458,23 +458,6 @@ cdef class ChunkedArray(_PandasConvertible):
return result

def _to_pandas(self, options, types_mapper=None, **kwargs):
<<<<<<< HEAD
=======
pandas_dtype = None
try:
if issubclass(type(self.type), ExtensionType):
pandas_dtype = self.type.to_pandas_dtype()
else:
pandas_dtype = _to_pandas_dtype(self.type, options)
except NotImplementedError:
pass

# pandas ExtensionDtype that implements conversion from pyarrow
if hasattr(pandas_dtype, '__from_arrow__'):
arr = pandas_dtype.__from_arrow__(self)
return pandas_api.series(arr, name=self._name)

>>>>>>> 18ebf4e91 (Coerce to ns in to_pandas_dtype for non-extension types)
return _array_like_to_pandas(self, options, types_mapper=types_mapper)

def to_numpy(self):
Expand Down

0 comments on commit 6ffb5e5

Please sign in to comment.