Skip to content

Day(normalize=True) gives ValueError: Tick offset with normalize=True are not allowed. #21633

Closed
@jorisvandenbossche

Description

@jorisvandenbossche

This is breaking on master (from doc build):

In [12]: from pandas.tseries.offsets import Day

In [13]: Day(normalize=True)
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-13-6b717dce6fa8> in <module>()
----> 1 Day(normalize=True)

~/scipy/pandas/pandas/tseries/offsets.py in __init__(self, n, normalize)
   2167 
   2168     def __init__(self, n=1, normalize=False):
-> 2169         BaseOffset.__init__(self, n, normalize)
   2170         if normalize:
   2171             raise ValueError("Tick offset with `normalize=True` are not "

ValueError: Tick offset with `normalize=True` are not allowed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions