Skip to content

BUG: Timedelta * Series -> TypeError #8813

Closed
@shoyer

Description

@shoyer

I encountered this today when rerunning a script that worked prior to the 0.15 arrival of Timedelta:

In [2]: pd.to_timedelta(10, unit='D') * pd.Series(range(10))
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-2-a5e3bc3be480> in <module>()
----> 1 pd.to_timedelta(10, unit='D') * pd.Series(range(10))

/Users/shoyer/dev/pandas/pandas/tslib.so in pandas.tslib.Timedelta.__mul__ (pandas/tslib.c:31355)()

TypeError: cannot multiply a Timedelta with <class 'pandas.core.series.Series'>

@jreback I think there might be another issue for this already?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions