def df_diff(df1, df2, which='both'):
    """
    Find rows which are different between two dataframes.
    """
    _df = df1.merge(df2, indicator=True, how='outer')         
    diff_df = _df[_df['_merge'] != which]
    return diff_df.reset_index(drop=True)