Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding tseries.offsets.Nano to other offsets throws error #9284

Closed
tvyomkesh opened this issue Jan 17, 2015 · 0 comments · Fixed by #9291
Closed

Adding tseries.offsets.Nano to other offsets throws error #9284

tvyomkesh opened this issue Jan 17, 2015 · 0 comments · Fixed by #9291
Labels
Bug Frequency DateOffsets
Milestone

Comments

@tvyomkesh
Copy link
Contributor

xref #9226

In [11]: from pandas.tseries import offsets

In [12]: t1 = offsets.Nano(100)

In [13]: t2 = offsets.Micro(1)

In [14]: t3 = t1 + t2
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
 in ()
----> 1 t3 = t1 + t2

/Users/tvyomkesh/pandas/pandas/tseries/offsets.pyc in __add__(self, other)
   2025                 return type(self)(self.n + other.n)
   2026             else:
-> 2027                 return _delta_to_tick(self.delta + other.delta)
   2028         try:
   2029             return self.apply(other)

TypeError: ufunc add cannot use operands with types dtype('<m8[ns]') and dtype('O')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Frequency DateOffsets
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants