Skip to content
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

BUG: CustomBusinessDay apply raises NameError when np.datetime64 is pass... #7196

Merged
merged 1 commit into from
Jun 4, 2014

Conversation

sinhrks
Copy link
Member

@sinhrks sinhrks commented May 21, 2014

CustomBusinessDay raises NameError when np.datetime64 is passed. It works if normalize=True is specified.

d = pd.offsets.CustomBusinessDay().apply(np.datetime64('2011-01-01 09:00:00'))
# NameError: global name 'np_day_incr' is not defined

d = pd.offsets.CustomBusinessDay(normalize=True).apply(np.datetime64('2011-01-01 09:00:00'))
#2011-01-03 00:00:00

@jreback jreback added this to the 0.14.1 milestone May 21, 2014
@jreback
Copy link
Contributor

jreback commented Jun 3, 2014

pls rebase

@jreback jreback merged commit 55b05e7 into pandas-dev:master Jun 4, 2014
@jreback
Copy link
Contributor

jreback commented Jun 4, 2014

thank you

@sinhrks sinhrks deleted the custombd branch June 5, 2014 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Frequency DateOffsets
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants