Skip to content

Commit d62f049

Browse files
committed
fix: correct typo in null_treatment parameter documentation
1 parent 097373d commit d62f049

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

python/datafusion/functions.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1524,9 +1524,7 @@ def cardinality(array: Expr) -> Expr:
15241524

15251525

15261526
def empty(array: Expr) -> Expr:
1527-
"""
1528-
This is an alias for :py:func:`array_empty`.
1529-
"""
1527+
"""This is an alias for :py:func:`array_empty`."""
15301528
return array_empty(array)
15311529

15321530

@@ -2148,7 +2146,7 @@ def first_value(
21482146
expression: Argument to perform bitwise calculation on
21492147
filter: If provided, only compute against rows for which the filter is True
21502148
order_by: Set the ordering of the expression to evaluate
2151-
null_treatment: Assign whether to respect or ignull null values.
2149+
null_treatment: Assign whether to respect or ignore null values.
21522150
"""
21532151
order_by_raw = sort_list_to_raw_sort_list(order_by)
21542152
filter_raw = filter.expr if filter is not None else None
@@ -2180,7 +2178,7 @@ def last_value(
21802178
expression: Argument to perform bitwise calculation on
21812179
filter: If provided, only compute against rows for which the filter is True
21822180
order_by: Set the ordering of the expression to evaluate
2183-
null_treatment: Assign whether to respect or ignull null values.
2181+
null_treatment: Assign whether to respect or ignore null values.
21842182
"""
21852183
order_by_raw = sort_list_to_raw_sort_list(order_by)
21862184
filter_raw = filter.expr if filter is not None else None
@@ -2214,7 +2212,7 @@ def nth_value(
22142212
n: Index of value to return. Starts at 1.
22152213
filter: If provided, only compute against rows for which the filter is True
22162214
order_by: Set the ordering of the expression to evaluate
2217-
null_treatment: Assign whether to respect or ignull null values.
2215+
null_treatment: Assign whether to respect or ignore null values.
22182216
"""
22192217
order_by_raw = sort_list_to_raw_sort_list(order_by)
22202218
filter_raw = filter.expr if filter is not None else None

0 commit comments

Comments
 (0)