API/ENH/COMPAT: compat for datetime.time via Timedelta #8343
Labels
API Design
Compat
pandas objects compatability with Numpy or Python functions
Dtype Conversions
Unexpected or buggy dtype conversions
Internals
Related to non-user accessible pandas implementation
Timedelta
Timedelta data type
Now that
Timedelta
is a full fledged type. It is quite trivial to convert adatetime.time
to aTimedelta
.pros:
TimeBlock
cons:
datetime.time
instance (instead its a sub-class ofdatetime.timedelta
)tz
(anyone actually use this 'feature')?datetime.time
).So either we go full-fledged and create a
Time
scalar andTimeBlock
(thoughTimeIndex
could work w/o these.). Its possible to also create aTimeBlock
and NOT create aTime
scalar.That said creating a
Time
scalar is very easy and much simpler thanTimedelta
and shares a lot of code.thoughts?
Is
datetime.time
really THAT different fromdatetime.timedelta
that it SHOULD be a full-fledged type?The text was updated successfully, but these errors were encountered: