Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor row* functions to use FExprs (#2872)
Each row* function now supports vararg-style invocation, e.g. `rowsum(f.A, f.B, f.C)`, in addition to the regular single-argument style. On the other hand, applying row-function to a frame no longer produces a frame -- instead, it's an FExpr. This functionality previously existed but was undocumented. It would be better to return this functionality as a method on `Frame` class, instead of being a special case for the row* functions. WIP for #2562
- Loading branch information
Showing
34 changed files
with
815 additions
and
753 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
.. xfunction:: datatable.rowall | ||
:src: src/core/expr/fnary/rowall.cc naryop_rowall | ||
:src: src/core/expr/fnary/rowall.cc FExpr_RowAll::apply_function | ||
:doc: src/core/expr/fnary/rowall.cc doc_rowall | ||
:tests: tests/ijby/test-rowwise.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
.. xfunction:: datatable.rowany | ||
:src: src/core/expr/fnary/rowany.cc naryop_rowany | ||
:src: src/core/expr/fnary/rowany.cc FExpr_RowAny::apply_function | ||
:doc: src/core/expr/fnary/rowany.cc doc_rowany | ||
:tests: tests/ijby/test-rowwise.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
.. xfunction:: datatable.rowcount | ||
:src: src/core/expr/fnary/rowcount.cc naryop_rowcount | ||
:src: src/core/expr/fnary/rowcount.cc FExpr_RowCount::apply_function | ||
:doc: src/core/expr/fnary/rowcount.cc doc_rowcount | ||
:tests: tests/ijby/test-rowwise.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
.. xfunction:: datatable.rowfirst | ||
:src: src/core/expr/fnary/rowfirstlast.cc naryop_rowfirstlast | ||
:src: src/core/expr/fnary/rowfirstlast.cc FExpr_RowFirstLast<FIRST>::apply_function | ||
:doc: src/core/expr/fnary/rowfirstlast.cc doc_rowfirst | ||
:tests: tests/ijby/test-rowwise.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
.. xfunction:: datatable.rowlast | ||
:src: src/core/expr/fnary/rowfirstlast.cc naryop_rowfirstlast | ||
:src: src/core/expr/fnary/rowfirstlast.cc FExpr_RowFirstLast<FIRST>::apply_function | ||
:doc: src/core/expr/fnary/rowfirstlast.cc doc_rowlast | ||
:tests: tests/ijby/test-rowwise.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
.. xfunction:: datatable.rowmax | ||
:src: src/core/expr/fnary/rowminmax.cc naryop_rowminmax | ||
:src: src/core/expr/fnary/rowminmax.cc FExpr_RowMinMax<MIN>::apply_function | ||
:doc: src/core/expr/fnary/rowminmax.cc doc_rowmax | ||
:tests: tests/ijby/test-rowwise.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
.. xfunction:: datatable.rowmean | ||
:src: src/core/expr/fnary/rowmean.cc naryop_rowmean | ||
:src: src/core/expr/fnary/rowmean.cc FExpr_RowMean::apply_function | ||
:doc: src/core/expr/fnary/rowmean.cc doc_rowmean | ||
:tests: tests/ijby/test-rowwise.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
.. xfunction:: datatable.rowmin | ||
:src: src/core/expr/fnary/rowminmax.cc naryop_rowminmax | ||
:src: src/core/expr/fnary/rowminmax.cc FExpr_RowMinMax<MIN>::apply_function | ||
:doc: src/core/expr/fnary/rowminmax.cc doc_rowmin | ||
:tests: tests/ijby/test-rowwise.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
.. xfunction:: datatable.rowsd | ||
:src: src/core/expr/fnary/rowsd.cc naryop_rowsd | ||
:src: src/core/expr/fnary/rowsd.cc FExpr_RowSd::apply_function | ||
:doc: src/core/expr/fnary/rowsd.cc doc_rowsd | ||
:tests: tests/ijby/test-rowwise.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
.. xfunction:: datatable.rowsum | ||
:src: src/core/expr/fnary/rowsum.cc naryop_rowsum | ||
:src: src/core/expr/fnary/rowsum.cc FExpr_RowSum::apply_function | ||
:doc: src/core/expr/fnary/rowsum.cc doc_rowsum | ||
:tests: tests/ijby/test-rowwise.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.