def before_nearest_workday(dt):
    return previous_workday(nearest_workday(dt))
returns previous workday after nearest workday
dataset/ETHPy150Open pydata/pandas/pandas/tseries/holiday.py/before_nearest_workday