A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pandas-dev/pandas/issues/9284 below:

Adding tseries.offsets.Nano to other offsets throws error · Issue #9284 · pandas-dev/pandas · GitHub

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')

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4