Skip to content

Hourly Frequency Business Days #2469

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

Closed
dms102 opened this issue Dec 10, 2012 · 0 comments · Fixed by #7905
Closed

Hourly Frequency Business Days #2469

dms102 opened this issue Dec 10, 2012 · 0 comments · Fixed by #7905
Labels
Datetime Datetime data dtype Enhancement Frequency DateOffsets
Milestone

Comments

@dms102
Copy link

dms102 commented Dec 10, 2012

in order to use pandas with Bloomberg time series data, I would like ability to set a time series with
i) hourly frequency for business days
ii) a given start and end time to that day

For the first part, using
bdate_range(startdate,enddate,freq='h')
doesn't do the right thing. Using 'freq=h' overrides the business days such that the resulting time series includes weekends too. The frequency alias 'bh' doesn't exist in the same way 'bm' does for example. Would it be possible to add this functionality? I could write something manually to go back and remove weekends, but this messes up the Frequency label on the time series such that later functions don't work (such as EWMVAR etc)

For the second part, this is useful functionality when calculating volatility/variance to be able to specify time ranges for each day. So a Business Hourly frequency starting at say 7am and ending 7pm on a day.

@jreback jreback modified the milestones: Next Major Release, Someday, 0.16.1 Apr 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Datetime Datetime data dtype Enhancement Frequency DateOffsets
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants