org.sparklinedata.spark.dateTime.Functions
Bucket the input dates dt into specified Periods p based on their distance from the origin