Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
universalmind303 committed Mar 7, 2024
1 parent d23d7cf commit 9e0df78
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions __tests__/series.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -520,8 +520,8 @@ describe("series", () => {
${"slice"} | ${pl.Series([1, 2, 3, 3, 0]).slice(-3, 3)} | ${pl.Series([3, 3, 0])}
${"slice"} | ${pl.Series([1, 2, 3, 3, 0]).slice(1, 3)} | ${pl.Series([2, 3, 3])}
${"sort"} | ${pl.Series([4, 2, 5, 1, 2, 3, 3, 0]).sort()} | ${pl.Series([0, 1, 2, 2, 3, 3, 4, 5])}
${"sort"} | ${pl.Series([4, 2, 5, 0]).sort({ descending: true })} | ${pl.Series([5, 4, 2, 0])}
${"sort"} | ${pl.Series([4, 2, 5, 0]).sort({ descending: false })} | ${pl.Series([0, 2, 4, 5])}
${"sort"} | ${pl.Series([4, 2, 5, 0]).sort({ descending: true })} | ${pl.Series([5, 4, 2, 0])}
${"sort"} | ${pl.Series([4, 2, 5, 0]).sort({ descending: false })} | ${pl.Series([0, 2, 4, 5])}
${"sum"} | ${pl.Series([1, 2, 2, 1]).sum()} | ${6}
${"tail"} | ${pl.Series([1, 2, 2, 1]).tail(2)} | ${pl.Series([2, 1])}
${"gatherEvery"} | ${pl.Series([1, 3, 2, 9, 1]).gatherEvery(2)} | ${pl.Series([1, 2, 1])}
Expand Down
1 change: 0 additions & 1 deletion polars/lazy/expr/string.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { regexToString } from "../../utils";
import { Expr, _Expr, exprToLitOrExpr } from "../expr";
import { lit } from "../functions";


/**
* namespace containing expr string functions
*/
Expand Down
2 changes: 1 addition & 1 deletion polars/shared_traits.ts
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ export interface ListFunctions<T> {
*/
join(): T;
join(separator: string | Expr): T;
join(options: {separator?: string | Expr, ignoreNulls?: boolean}): T;
join(options: { separator?: string | Expr; ignoreNulls?: boolean }): T;
/**
* Get the last value of the sublists.
* @category List
Expand Down
4 changes: 3 additions & 1 deletion src/lazy/dataframe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,9 @@ impl JsLazyFrame {

let path_buf: PathBuf = PathBuf::from(path);
let ldf = self.ldf.clone().with_comm_subplan_elim(false);
let _ = ldf.sink_parquet(path_buf, options).map_err(JsPolarsErr::from);
let _ = ldf
.sink_parquet(path_buf, options)
.map_err(JsPolarsErr::from);
Ok(())
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/lazy/dsl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ impl JsExpr {
.with_fmt("str.to_uppercase")
.into()
}

#[napi(catch_unwind)]
pub fn str_slice(&self, offset: &JsExpr, length: &JsExpr) -> JsExpr {
self.inner
Expand Down

0 comments on commit 9e0df78

Please sign in to comment.