-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a function to compute the number of business days between two dates #84
Comments
Here's a possible solution to calculate:
This UDF can accept an optional list of holidays to exclude besides the weekend days |
Thank you for the contribution! But I think we should make it work without an UDF, so that Spark can optimize the query |
@MrPowers : I would like to work on this issue , can you assign this issue to me? |
This was added! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See this comment and some of the other comments that follow.
The function should be in functions.py and be called something like
business_days_between
or something (consistent with this this answer).The text was updated successfully, but these errors were encountered: