def _selection_formatter(s):
    """This translates pandas subsampling strings 'W', 'D', 'H' into something
    more human readable."""
    if s == "W":
        return "Week"
    elif s == "D":
        return "Day"
    elif s == "H":
        return "Hour"
    else:
        return "Day"