We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21226cc commit 67890c5Copy full SHA for 67890c5
src/core/expr/fexpr.cc
@@ -534,7 +534,8 @@ DECLARE_METHOD(&PyFExpr::min)
534
535
oobj PyFExpr::nth(const XArgs& args) {
536
auto nthFn = oobj::import("datatable", "nth");
537
- auto n = args[1].to<py::oobj>(py::oint(0));
+ oobj n = args[0].to_oobj() ? args[0].to_oobj()
538
+ : py::oint(0);
539
oobj skipna = args[1].to_oobj_or_none();
540
return nthFn.call({this, n, skipna});
541
}
0 commit comments