Skip to content

Commit 5315aee

Browse files
Chang Shewesm
Chang She
authored andcommitted
ENH: add 'time' as inferred_type
1 parent 61aac3d commit 5315aee

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pandas/src/inference.pyx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ def infer_dtype(object _values):
6868
if is_date_array(values):
6969
return 'date'
7070

71+
elif is_time(val):
72+
if is_time_array(values):
73+
return 'time'
74+
7175
elif util.is_float_object(val):
7276
if is_float_array(values):
7377
return 'floating'

0 commit comments

Comments
 (0)