Skip to content

Commit

Permalink
api reference
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoGorelli committed Mar 24, 2024
1 parent e32916f commit 07cd722
Show file tree
Hide file tree
Showing 5 changed files with 62 additions and 0 deletions.
23 changes: 23 additions & 0 deletions docs/api-reference/expressions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# `narwhals.Expr`

::: narwhals.Expr
handler: python
options:
members:
- alias
- cast
- mean
- sum
- min
- max
- n_unique
- unique
- is_between
- is_in
- is_null
- drop_nulls
- sample
- str
show_root_heading: false
show_source: false
show_bases: false
7 changes: 7 additions & 0 deletions docs/api-reference/narwhals.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,12 @@ Here are the top-level functions available in Narwhals.
members:
- from_native
- to_native
- col
- min
- max
- mean
- sum
- len
- sum_horizontal
#show_root_heading: false
show_source: false
28 changes: 28 additions & 0 deletions docs/api-reference/series.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# `narwhals.Series`

::: narwhals.series.Series
handler: python
options:
members:
- alias
- name
- dtype
- shape
- rename
- cast
- item
- is_between
- is_in
- is_null
- drop_nulls
- n_unique
- unique
- zip_with
- sample
- to_numpy
- to_pandas
- mean
- std
show_root_heading: false
show_source: false
show_bases: false
2 changes: 2 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ nav:
- api-reference/narwhals.md
- api-reference/dataframe.md
- api-reference/lazyframe.md
- api-reference/series.md
- api-reference/expressions.md
theme:
name: material
font: false
Expand Down
2 changes: 2 additions & 0 deletions narwhals/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from narwhals.dataframe import DataFrame
from narwhals.dataframe import LazyFrame
from narwhals.dtypes import * # noqa: F403
from narwhals.expression import Expr
from narwhals.expression import all
from narwhals.expression import col
from narwhals.expression import len
Expand Down Expand Up @@ -39,4 +40,5 @@
"DataFrame",
"LazyFrame",
"Series",
"Expr",
]

0 comments on commit 07cd722

Please sign in to comment.