Say I have a function that parses a couple of columns (in the case of a DataFrame) or a couple of scalars into a datetime64.
How can I write one piece of code that works on both scalars and arrays/series? I seem to remember there's a standard way of doing this but can't find it.
As a further part of this, how would I write this one callable if the operations I needed to perform were different between arrays and scalars?