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