Skip to content

Commit ae8c1dd

Browse files
committed
docs: update example in DataFrame.into_view docstring for clarity
1 parent 29203c6 commit ae8c1dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/datafusion/dataframe.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,8 +340,8 @@ def into_view(self) -> TableProvider:
340340
>>> from datafusion import SessionContext
341341
>>> ctx = SessionContext()
342342
>>> df = ctx.sql("SELECT 1 AS value")
343-
>>> provider = df.into_view()
344-
>>> ctx.register_table("values_view", provider)
343+
>>> view = df.into_view()
344+
>>> ctx.register_table("values_view", view)
345345
>>> df.collect() # The DataFrame is still usable
346346
>>> ctx.sql("SELECT value FROM values_view").collect()
347347
"""

0 commit comments

Comments
 (0)