Skip to content

Commit 914f17e

Browse files
committed
Fix formatting in DataFrame documentation and add example usage for Arrow integration
1 parent c36aa9a commit 914f17e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

docs/source/user-guide/dataframe/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ PyArrow
179179
180180
DataFrames are also iterable, yielding :class:`datafusion.RecordBatch`
181181
objects lazily so you can loop over results directly without importing
182-
PyArrow::
182+
PyArrow:
183183

184184
.. code-block:: python
185185

docs/source/user-guide/io/arrow.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ Python library that accepts these can import a DataFusion DataFrame directly.
7474

7575
.. ipython:: python
7676
77+
from datafusion import col, lit
78+
7779
df = df.select((col("a") * lit(1.5)).alias("c"), lit("df").alias("d"))
7880
pa.table(df)
7981

0 commit comments

Comments
 (0)