Non-consecutive intraday index
问题 This question is related to : Python pandas, how to only plot a DataFrame that actually have the datapoint and leave the gap out I'd like to know the easiest way to produce non-consecutive DateTimeIndex at intra-day resolution, that only maintains samples between certain [stock exchange] times e.g. 08:00-16:30, and has only given weekdays e.g. Mon-Fri. A bonus would be to be allow provision of a calendar of valid dates. At the day range, it's easy to do with pandas.bdate_range() for Mon-Fri.