Skip to content

Commit 638b60b

Browse files
committed
POC: infer time objects to ArrowDtype[time]
1 parent a1abbaf commit 638b60b

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

pandas/_libs/lib.pyx

-1
Original file line numberDiff line numberDiff line change
@@ -2653,7 +2653,6 @@ def maybe_convert_objects(ndarray[object] objects,
26532653

26542654
elif seen.time_:
26552655
if is_time_array(objects):
2656-
# FIXME: need to ensure this is not timetz
26572656
opt = get_option("future.infer_time")
26582657
if opt is True:
26592658
import pyarrow as pa

pandas/core/construction.py

+1
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,7 @@ def array(
300300
PeriodArray,
301301
TimedeltaArray,
302302
)
303+
from pandas.core.arrays.arrow import ArrowDtype
303304
from pandas.core.arrays.string_ import StringDtype
304305

305306
if lib.is_scalar(data):

0 commit comments

Comments
 (0)