Businessday make np.busday_count return negative values when the start date is after end date by gandalf013 · Pull Request #117 · numpy/numpy

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@gandalf013

Copy link Copy Markdown

Contributor

np.busday_count() returns 0 if start date is after end date. This patch fixes it to return negative values in this case.

@mwiebe

Copy link Copy Markdown

Member

mwiebe commented

Jul 19, 2011

The change looks good, I've gone ahead and merged it. I updated the documentation and tests as well, to complete it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@gandalf013 @mwiebe