def _maybe_numeric_slice(df, slice_, include_bool=False):
if slice_ is None:<EOL><INDENT>dtypes = [np.number]<EOL>if include_bool:<EOL><INDENT>dtypes.append(bool)<EOL><DEDENT>slice_ = IndexSlice[:, df.select_dtypes(include=dtypes).columns]<EOL><DEDENT>return slice_<EOL>
want nice defaults for background_gradient that don't break
with non-numeric data. But if slice_ is passed go with that.