edit _set_grouper func to return basegrouper for non-datetime groupings while still returning a datetime index for datetime grouping