Skip to content

Commit bf1d78b

Browse files
committed
POC: infer time objects to ArrowDtype[time]
1 parent 03ef1a3 commit bf1d78b

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
@@ -2644,7 +2644,6 @@ def maybe_convert_objects(ndarray[object] objects,
26442644

26452645
elif seen.time_:
26462646
if is_time_array(objects):
2647-
# FIXME: need to ensure this is not timetz
26482647
opt = get_option("future.infer_time")
26492648
if opt is True:
26502649
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)