Skip to content

Commit

Permalink
fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoGorelli committed Feb 5, 2025
1 parent e3bf291 commit b00e1a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions narwhals/dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -2415,7 +2415,7 @@ def drop_nulls(self: Self, subset: str | list[str] | None = None) -> Self:
Examples:
>>> import duckdb
>>> import narwhals as nw
>>> lf_native = duckdb.sql("SELECT * FROM VALUES (1, null), (3, 4) df(a, b)")
>>> lf_native = duckdb.sql("SELECT * FROM VALUES (1, NULL), (3, 4) df(a, b)")
>>> nw.from_native(lf_native).drop_nulls()
┌──────────────────┐
|Narwhals LazyFrame|
Expand Down Expand Up @@ -2866,7 +2866,7 @@ def sort(
>>> import duckdb
>>> import narwhals as nw
>>> df_native = duckdb.sql(
... "SELECT * FROM VALUES (1, 6.0, 'a'), (2, 5.0, 'c'), (null, 4.0, 'b') df(a, b, c)"
... "SELECT * FROM VALUES (1, 6.0, 'a'), (2, 5.0, 'c'), (NULL, 4.0, 'b') df(a, b, c)"
... )
>>> df = nw.from_native(df_native)
>>> df.sort(by="a")
Expand Down

0 comments on commit b00e1a0

Please sign in to comment.