Skip to content

Commit

Permalink
Update string_arrow.py
Browse files Browse the repository at this point in the history
  • Loading branch information
phofl authored Oct 15, 2023
1 parent 9ce658f commit 172e983
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandas/core/arrays/string_arrow.py
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ def _str_map(
def _convert_int_dtype(self, result):
if isinstance(result, pa.Array):
result = result.to_numpy(zero_copy_only=False)
else:
elif not isinstance(result, np,ndarray):
result = result.to_numpy()
if result.dtype == np.int32:
result = result.astype(np.int64)
Expand Down

0 comments on commit 172e983

Please sign in to comment.