Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions python/datafusion/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -2268,6 +2268,11 @@ def first_value(
) -> Expr:
"""Returns the first value in a group of values.

.. note::
This is an aggregate function. It must be used within
:py:meth:`~datafusion.dataframe.DataFrame.aggregate` and generally cannot be
used with :py:meth:`~datafusion.dataframe.DataFrame.select`.

This aggregate function will return the first value in the partition.

If using the builder functions described in ref:`_aggregation` this function ignores
Expand Down