Skip to content

Commit

Permalink
apacheGH-35081: [Python] Remove usage of pandas internals DatetimeTZB…
Browse files Browse the repository at this point in the history
…lock
  • Loading branch information
jorisvandenbossche committed Oct 18, 2023
1 parent ac581fd commit 9c3fdf9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/pyarrow/pandas_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -718,9 +718,9 @@ def _reconstruct_block(item, columns=None, extension_columns=None):
elif 'timezone' in item:
unit, _ = np.datetime_data(block_arr.dtype)
dtype = make_datetimetz(unit, item['timezone'])
block = _int.make_block(block_arr, placement=placement,
klass=_int.DatetimeTZBlock,
dtype=dtype)
block = _int.make_block(
np.atleast_2d(block_arr), placement=placement, dtype=dtype
)
elif 'object' in item:
block = _int.make_block(pickle.loads(block_arr),
placement=placement)
Expand Down

0 comments on commit 9c3fdf9

Please sign in to comment.