Skip to content

Commit

Permalink
fix fexpr.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
samukweku committed Apr 11, 2023
1 parent d26226e commit 7435bf5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/expr/fexpr.cc
Expand Up @@ -533,7 +533,8 @@ DECLARE_METHOD(&PyFExpr::min)

oobj PyFExpr::nth(const XArgs& args) {
auto nthFn = oobj::import("datatable", "nth");
auto n = args[1].to<py::oobj>(py::oint(0));
oobj n = args[0].to_oobj() ? args[0].to_oobj()
: py::oint(0);
oobj skipna = args[1].to_oobj_or_none();
return nthFn.call({this, n, skipna});
}
Expand Down

0 comments on commit 7435bf5

Please sign in to comment.