def filter_before(df, date_):
    """Return df excluding rows where index dates are before input date_"""
    try:
        return df[df.index >= date_]
    except (AttributeError, TypeError):
        return df