Why this topic?
There’s a lot of documentation on using Numpy’s arange function to create ranges of numbers. However, not much is said about creating date- and time- based ranges, which are much more useful for business.
What it covers:
First, I give a quick review of the NumPy arange function syntax. Then, I walk through 3 code examples that are relevant for business, and highlight a few things that are strange or could go wrong.