Custom Business Month by bjonen · Pull Request #6866 · pandas-dev/pandas (original) (raw)

This extends the offsets.py module with a CBMonthEnd based on CustomBusinessDay. Tests are found in test_offsets.py.

A few small points still open:

Also some of the tests are not passing, but the errors seem unrelated.
e.g.

======================================================================
ERROR: test_pickle (pandas.tseries.tests.test_timeseries.TestTimeSeries)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/benjamin/workspace/pandas/pandas/tseries/tests/test_timeseries.py", line 1827, in test_pickle
    p = pick.loads(pick.dumps(NaT))
  File "/usr/lib/python2.7/pickle.py", line 1382, in loads
    return Unpickler(file).load()
  File "/usr/lib/python2.7/pickle.py", line 858, in load
    dispatch[key](self)
  File "/usr/lib/python2.7/pickle.py", line 1133, in load_reduce
    value = func(*args)
TypeError: __new__() takes exactly one argument (2 given)