def int_to_ts(int_list, as_datetime=False, as_str=True):
    """Accepts one Panda's interval and returns the left and right ends as either strings or Timestamps."""
    import pandas as pd
    if as_datetime & as_str:
        raise Exception('Only one of `as_datetime`, or `as_str` can be True.')
    left_edges = []
    right_edges = []
    for interval in int_list:
        int_str = interval.__str__()[1:-1]
        left, right = int_str.split(',')
        left_edges.append(left)
        right_edges.append(right)
    if as_str:
        return left_edges, right_edges
    elif as_datetime:
        left = pd.to_datetime(left)
        right = pd.to_datetime(right)
        return left, right
