Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ae01101

Browse files
committedJun 23, 2023
POC: infer time objects to ArrowDtype[time]
1 parent ce1bc00 commit ae01101

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed
 

‎pandas/_libs/lib.pyx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2660,7 +2660,6 @@ def maybe_convert_objects(ndarray[object] objects,
26602660

26612661
elif seen.time_:
26622662
if is_time_array(objects):
2663-
# FIXME: need to ensure this is not timetz
26642663
opt = get_option("future.infer_time")
26652664
if opt is True:
26662665
import pyarrow as pa

‎pandas/core/construction.py

Lines changed: 1 addition & 0 deletions
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)
Please sign in to comment.