This is negligible, but you may want to use if `(plot_df.index != df.index).any():` here; That uses the numpy `any` instead of the python builtin. It's faster for big arrays.