Produce an OVER clause against this :class:`.WithinGroup` construct. This function has the same signature as that of :meth:`.FunctionElement.over`.
(
self,
*,
partition_by: _ByArgument | None = None,
order_by: _ByArgument | None = None,
rows: _FrameIntTuple | FrameClause | None = None,
range_: _FrameIntTuple | FrameClause | None = None,
groups: _FrameIntTuple | FrameClause | None = None,
exclude: str | None = None,
)
| 4809 | ) |
| 4810 | |
| 4811 | def over( |
| 4812 | self, |
| 4813 | *, |
| 4814 | partition_by: _ByArgument | None = None, |
| 4815 | order_by: _ByArgument | None = None, |
| 4816 | rows: _FrameIntTuple | FrameClause | None = None, |
| 4817 | range_: _FrameIntTuple | FrameClause | None = None, |
| 4818 | groups: _FrameIntTuple | FrameClause | None = None, |
| 4819 | exclude: str | None = None, |
| 4820 | ) -> Over[_T]: |
| 4821 | """Produce an OVER clause against this :class:`.WithinGroup` |
| 4822 | construct. |
| 4823 | |
| 4824 | This function has the same signature as that of |
| 4825 | :meth:`.FunctionElement.over`. |
| 4826 | |
| 4827 | """ |
| 4828 | return Over( |
| 4829 | self, |
| 4830 | partition_by=partition_by, |
| 4831 | order_by=order_by, |
| 4832 | range_=range_, |
| 4833 | rows=rows, |
| 4834 | groups=groups, |
| 4835 | exclude=exclude, |
| 4836 | ) |
| 4837 | |
| 4838 | @overload |
| 4839 | def filter(self) -> Self: ... |