Skip to content

Commit 688f3ae

Browse files
committed
feat: add dplyr.reframe (#210)
1 parent 66a505e commit 688f3ae

File tree

7 files changed

+2037
-930
lines changed

7 files changed

+2037
-930
lines changed

datar/apis/dplyr.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2272,6 +2272,25 @@ def summarise(_data, *args, _groups: str = None, **kwargs) -> Any:
22722272
summarize = summarise
22732273

22742274

2275+
@_register_verb()
2276+
def reframe(_data, *args, **kwargs) -> Any:
2277+
"""Reframe a data frame.
2278+
2279+
See original API
2280+
https://dplyr.tidyverse.org/reference/reframe.html
2281+
2282+
Args:
2283+
_data: A data frame
2284+
*args: and
2285+
**kwargs: Name-value pairs, where value is the reframed
2286+
data for each group
2287+
2288+
Returns:
2289+
A data frame with the reframed columns
2290+
"""
2291+
raise _NotImplementedByCurrentBackendError("reframe", _data)
2292+
2293+
22752294
@_register_verb(dependent=True)
22762295
def where(_data, fn: _Callable) -> Any:
22772296
"""Selects the variables for which a function returns True.

0 commit comments

Comments
 (0)