Skip to content

Commit af08ee6

Browse files
timsaucerclaude
andcommitted
Simplify read_empty docstring to use alias pattern
Follow the same See Also alias convention used in functions.py since read_empty is a simple alias for empty_table. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent b719b47 commit af08ee6

1 file changed

Lines changed: 2 additions & 12 deletions

File tree

python/datafusion/context.py

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1542,18 +1542,8 @@ def read_arrow(
15421542
def read_empty(self) -> DataFrame:
15431543
"""Create an empty :py:class:`DataFrame` with no columns or rows.
15441544
1545-
This is an alias for :meth:`empty_table`.
1546-
1547-
Returns:
1548-
An empty DataFrame.
1549-
1550-
Examples:
1551-
>>> df = ctx.read_empty()
1552-
>>> result = df.collect()
1553-
>>> len(result)
1554-
1
1555-
>>> result[0].num_columns
1556-
0
1545+
See Also:
1546+
This is an alias for :meth:`empty_table`.
15571547
"""
15581548
return self.empty_table()
15591549

0 commit comments

Comments
 (0)