Skip to content

Commit

Permalink
fix rowcount
Browse files Browse the repository at this point in the history
  • Loading branch information
universalmind303 committed Feb 8, 2022
1 parent 7c8ef44 commit 7123062
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nodejs-polars/src/dataframe/frame.rs
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ pub fn with_row_count(cx: CallContext) -> JsResult<JsExternal> {
let params = get_params(&cx)?;
let df = params.get_external::<DataFrame>(&cx, "_df")?;
let name = params.get_as::<&str>("name")?;
df.with_row_count(name)
df.with_row_count(name, None)
.map_err(JsPolarsEr::from)?
.try_into_js(&cx)
}
Expand Down
2 changes: 1 addition & 1 deletion nodejs-polars/src/lazy/lazyframe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ pub fn with_row_count(cx: CallContext) -> JsResult<JsExternal> {
let ldf = params.get_external::<LazyFrame>(&cx, "_ldf")?.clone();
let name: String = params.get_as("name")?;

ldf.with_row_count(&name).try_into_js(&cx)
ldf.with_row_count(&name, None).try_into_js(&cx)
}

#[js_function(1)]
Expand Down

0 comments on commit 7123062

Please sign in to comment.