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/11406 below:

QuarterBegin doesn't match other offsets for n=0 · Issue #11406 · pandas-dev/pandas · GitHub

xref #8435 (different issue though)
normally the semantic is to roll forward to the next period for n=0

In [15]: pd.Timestamp('2014-3-2') + pd.offsets.MonthBegin(n=0)
Out[15]: Timestamp('2014-04-01 00:00:00')

In [16]: pd.Timestamp('2014-3-2') + pd.offsets.QuarterBegin(n=0)
Out[16]: Timestamp('2014-03-01 00:00:00')

In [17]: #expected: Timestamp('2014-06-01 00:00:00')

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