Author: Diane Trout Description: The FutureWarning for not finding dask_expr was being treated as an error. Ignore the warning and slightly change the layout of the warning message so ignore can spot it. Forwarded: no (future dask includes dask_expr, so not needed) --- a/pyproject.toml +++ b/pyproject.toml @@ -136,6 +136,7 @@ # Ignore FutureWarning for change in group_keys behavior: no changes required on the dask side. # https://pandas.pydata.org/docs/dev/whatsnew/v1.5.0.html#using-group-keys-with-transformers-in-groupby-apply "ignore:Not prepending group keys:FutureWarning", + "ignore:Dask dataframe query planning is disabled:FutureWarning", "ignore:.*:dask.tests.warning_aliases.RemovedIn20Warning", "ignore:When grouping with a length-1 list-like, you will need to pass a length-1 tuple to get_group in a future version of pandas:FutureWarning", 'ignore:Passing a BlockManager to DataFrame is deprecated and will raise in a future version. Use public APIs instead:DeprecationWarning', # https://github.com/apache/arrow/issues/35081 --- a/dask/dataframe/__init__.py +++ b/dask/dataframe/__init__.py @@ -39,8 +39,7 @@ try: import dask_expr # noqa: F401 except ImportError: - msg = """ -Dask dataframe query planning is disabled because dask-expr is not installed. + msg = """Dask dataframe query planning is disabled because dask-expr is not installed. You can install it with `pip install dask[dataframe]` or `conda install dask`. This will raise in a future version.