Skip to content

Commit ba54f7d

Browse files
committed
fix: add SessionContext import for DataFrame creation example in joins documentation
1 parent 628dc15 commit ba54f7d

File tree

1 file changed

+2
-1
lines changed
  • docs/source/user-guide/common-operations

1 file changed

+2
-1
lines changed

docs/source/user-guide/common-operations/joins.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ When you create a DataFrame with a ``name`` argument, that name is used as a pre
112112

113113
.. ipython:: python
114114
115-
from datafusion import col
115+
from datafusion import col, SessionContext
116+
ctx = SessionContext()
116117
left = ctx.from_pydict({"id": [1, 2]}, name="l")
117118
right = ctx.from_pydict({"id": [2, 3]}, name="r")
118119
joined = left.join(right, on="id")

0 commit comments

Comments
 (0)