diff --git a/docs/source/user-guide/data-sources.rst b/docs/source/user-guide/data-sources.rst index b7f10b41..ba5967c9 100644 --- a/docs/source/user-guide/data-sources.rst +++ b/docs/source/user-guide/data-sources.rst @@ -124,7 +124,7 @@ interface can be imported to DataFusion using the not support the arrow interface. In those cases, you can still import via the :py:func:`~datafusion.context.SessionContext.from_polars` function. -.. ipython:: python +.. code-block:: python import pandas as pd @@ -134,6 +134,8 @@ not support the arrow interface. In those cases, you can still import via the datafusion_df = ctx.from_arrow(pandas_df) datafusion_df.show() +.. code-block:: python + import polars as pl polars_df = pl.DataFrame(data)