Debian Codegraph @

debian/patches/handle_dask_expr_exception.patch

raw
1 Author: Diane Trout <[email protected]>
2 Description: The FutureWarning for not finding dask_expr was
3 being treated as an error. Ignore the warning and
4 slightly change the layout of the warning message so ignore
5 can spot it.
6 Forwarded: no (future dask includes dask_expr, so not needed)
7
8 --- a/pyproject.toml
9 +++ b/pyproject.toml
10 @@ -136,6 +136,7 @@
11 # Ignore FutureWarning for change in group_keys behavior: no changes required on the dask side.
12 # https://pandas.pydata.org/docs/dev/whatsnew/v1.5.0.html#using-group-keys-with-transformers-in-groupby-apply
13 "ignore:Not prepending group keys:FutureWarning",
14 + "ignore:Dask dataframe query planning is disabled:FutureWarning",
15 "ignore:.*:dask.tests.warning_aliases.RemovedIn20Warning",
16 "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",
17 '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
18 --- a/dask/dataframe/__init__.py
19 +++ b/dask/dataframe/__init__.py
20 @@ -39,8 +39,7 @@
21 try:
22 import dask_expr # noqa: F401
23 except ImportError:
24 - msg = """
25 -Dask dataframe query planning is disabled because dask-expr is not installed.
26 + msg = """Dask dataframe query planning is disabled because dask-expr is not installed.
27
28 You can install it with `pip install dask[dataframe]` or `conda install dask`.
29 This will raise in a future version.