diff --git a/py-polars/polars/io/delta.py b/py-polars/polars/io/delta.py index 0970eb134d88..b45cc66608aa 100644 --- a/py-polars/polars/io/delta.py +++ b/py-polars/polars/io/delta.py @@ -316,8 +316,7 @@ def _get_delta_lake_table( def _check_if_delta_available() -> None: if not _DELTALAKE_AVAILABLE: raise ModuleNotFoundError( - "deltalake is not installed" - "\n\nPlease run: pip install deltalake>=0.9.0" + "deltalake is not installed\n\nPlease run: pip install deltalake>=0.9.0" ) diff --git a/py-polars/polars/utils/_construction.py b/py-polars/polars/utils/_construction.py index b22cd7ac3842..d6417d15f1a2 100644 --- a/py-polars/polars/utils/_construction.py +++ b/py-polars/polars/utils/_construction.py @@ -1061,9 +1061,7 @@ def _sequence_of_sequence_to_pydf( ] return PyDataFrame(data_series) - raise ValueError( - f"`orient` must be one of {{'col', 'row', None}}, got {orient!r}" - ) + raise ValueError(f"`orient` must be one of {{'col', 'row', None}}, got {orient!r}") @_sequence_to_pydf_dispatcher.register(tuple)