Repository: dask/dask
File: dask/dataframe/__init__.py (Python)

Code before:
        except ImportError:
            raise ValueError("Must install dask-expr to activate query planning.")
    return use_dask_expr


if _dask_expr_enabled():
    from dask_expr import (
        DataFrame,
        Index,
        Series,
        concat,
        from_array,
        from_dask_array,
        from_dask_dataframe,
        from_delayed,
        from_dict,
        from_graph,
        from_map,
        from_pandas,
        isna,
        map_overlap,
        map_partitions,
        merge,
        pivot_table,
        read_csv,
        read_parquet,
        repartition,
        to_datetime,
        to_numeric,
        to_parquet,
        to_timedelta,
    )

    import dask.dataframe._pyarrow_compat
    from dask.base import compute
    from dask.dataframe import backends, dispatch
    from dask.dataframe.utils import assert_eq

    def raise_not_implemented_error(attr_name):
        def inner_func(*args, **kwargs):
            raise NotImplementedError(
                f"Function {attr_name} is not implemented for dask-expr."
            )

        return inner_func

    _Frame = raise_not_implemented_error("_Frame")
    Aggregation = raise_not_implemented_error("Aggregation")
    read_fwf = raise_not_implemented_error("read_fwf")
    read_hdf = raise_not_implemented_error("read_hdf")
    read_json = raise_not_implemented_error("read_json")

Review comment (bug):
tests are failing:

FAILED dask/array/tests/test_array_core.py::test_map_blocks_series - ImportError: cannot import name 'read_hdf' from 'dask_expr' (/home/runner/miniconda3/envs/test-environment/lib/python3.12/site-packages/dask_expr/__init__.py). Did you mean: 'read_csv'?
FAILED dask/tests/test_distributed.py::test_to_hdf_distributed - ImportError: cannot import name 'read_hdf' from 'dask_expr' (/home/runner/miniconda3/envs/test-environment/lib/python3.12/site-packages/dask_expr/__init__.py). Did you mean: 'read_csv'?
FAILED dask/tests/test_distributed.py::test_to_hdf_scheduler_distributed[1] - ImportError: cannot import name 'read_hdf' from 'dask_expr' (/home/runner/miniconda3/envs/test-environment/lib/python3.12/site-packages/dask_expr/__init__.py). Did you mean: 'read_csv'?
FAILED dask/tests/test_order.py::test_array_vs_dataframe[True] - ImportError: cannot import name 'read_hdf' from 'dask_expr' (/home/runner/miniconda3/envs/test-environment/lib/python3.12/site-packages/dask_expr/__init__.py). Did you mean: 'read_csv'?
FAILED dask/tests/test_order.py::test_array_vs_dataframe[False] - ImportError: cannot import name 'read_hdf' from 'dask_expr' (/home/runner/miniconda3/envs/test-environment/lib/python3.12/site-packages/dask_expr/__init__.py). Did you mean: 'read_csv'?

ERROR collecting dask/dataframe/io/tests/test_demo.py
  E   ImportError: cannot import name 'read_hdf' from 'dask_expr' (/home/runner/miniconda3/envs/test-environment/lib/python3.12/site-packages/dask_expr/__init__.py). Did you mean: 'read_csv'?
```

Code after:
        except ImportError:
            raise ValueError("Must install dask-expr to activate query planning.")
    return use_dask_expr


if _dask_expr_enabled():
    from dask_expr import (
        DataFrame,
        Index,
        Series,
        concat,
        from_array,
        from_dask_array,
        from_dask_dataframe,
        from_delayed,
        from_dict,
        from_graph,
        from_map,
        from_pandas,
        isna,
        map_overlap,
        map_partitions,
        merge,
        pivot_table,
        read_csv,
        read_hdf,
        read_json,
        read_orc,
        read_parquet,
        read_sql,
        read_sql_query,
        read_sql_table,
        read_table,
        repartition,
        to_bag,
        to_csv,
        to_datetime,
        to_hdf,
        to_json,
        to_numeric,
        to_orc,
        to_parquet,
        to_records,
        to_sql,
        to_timedelta,
    )

    import dask.dataframe._pyarrow_compat
    from dask.base import compute
    from dask.dataframe import backends, dispatch
    from dask.dataframe.utils import assert_eq