def display_df(df):
    """Display `df` in a notebook or defaults to print"""
    try:
        from IPython.display import display, HTML
    except:
        return print(df)
    display(HTML(df.to_html()))
