Skip to content

weekmask issue with NYSE #207

Open
Open
@tvr101

Description

@tvr101

Hi the NYSE weekmask includes saturday, but this causes issues when the holidays() method is called since the CustomBusinessDay object includes saturday as a valid business day without checking if after 1952, here is an example that roll sunday 6/26 back to saturday 6/25:

import pandas_market_calendars as mcal
nyse = mcal.get_calendar("NYSE")
holidays = nyse.holidays()
holidays.rollback("2022-06-26")

Timestamp('2022-06-25 00:00:00')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions