Skip to content

Commit

Permalink
minor lazyframe API updates for devices and installation instructions…
Browse files Browse the repository at this point in the history
… if missing packages
  • Loading branch information
beckernick committed Sep 15, 2024
1 parent 4b0917c commit 2560785
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions py-polars/polars/lazyframe/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -1865,7 +1865,7 @@ def collect(
polars CPU engine. If set to `"gpu"`, the GPU engine is
used. Fine-grained control over the GPU engine, for
example which device to use on a system with multiple
devices, is possible by providing a :class:`GPUEngine` object
devices, is possible by providing a :class:`~.GPUEngine` object
with configuration options.
.. note::
Expand Down Expand Up @@ -2019,9 +2019,10 @@ def collect(
"cudf_polars",
err_prefix="GPU engine requested, but required package",
install_message=(
"Please install using the command `pip install cudf-polars-cu12` "
"(or `pip install cudf-polars-cu11` if your system has a "
"CUDA 11 driver)."
"Please install using the command "
"`pip install --extra-index-url=https://pypi.nvidia.com cudf-polars-cu12` "
"(or `pip install --extra-index-url=https://pypi.nvidia.com cudf-polars-cu11` "
"if your system has a CUDA 11 driver)."
),
)
if not is_config_obj:
Expand Down

0 comments on commit 2560785

Please sign in to comment.