From 5e1d1ac8388a9aedd6608cd5f0eb4ad0d8efc544 Mon Sep 17 00:00:00 2001 From: Tim Saucer Date: Mon, 25 Nov 2024 07:53:40 -0500 Subject: [PATCH] Build pipeline doesn't have polars and it isn't really necessary for the example, so swith to a code block instead of ipython directive --- docs/source/user-guide/data-sources.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)