forked from narwhals-dev/narwhals
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into optimise-indexing-operation
- Loading branch information
Showing
68 changed files
with
1,068 additions
and
411 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,5 +32,8 @@ tpch/data/* | |
# VSCode | ||
.vscode/ | ||
|
||
# IntelliJ IDEA / PyCharm | ||
.idea/ | ||
|
||
# MacOS | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,6 +37,7 @@ | |
- tail | ||
- to_arrow | ||
- to_dict | ||
- to_native | ||
- to_numpy | ||
- to_pandas | ||
- unique | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,7 @@ | |
- Categorical | ||
- Enum | ||
- String | ||
- Date | ||
- Datetime | ||
- Duration | ||
- Object | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
- contains | ||
- ends_with | ||
- head | ||
- len_chars | ||
- slice | ||
- replace | ||
- replace_all | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,20 @@ | ||
# API Reference | ||
|
||
Anything documented in the API reference is intended to work consistently among | ||
supported backends. | ||
|
||
For example: | ||
```python | ||
import narwhals as nw | ||
|
||
df.with_columns( | ||
a_mean=nw.col("a").mean(), | ||
a_std=nw.col("a").std(), | ||
) | ||
``` | ||
is supported, as `DataFrame.with_columns`, `narwhals.col`, `Expr.mean`, and `Expr.std` are | ||
all documented in the API reference. | ||
|
||
However, | ||
```python | ||
import narwhals as nw | ||
|
||
df.with_columns( | ||
a_ewm_mean=nw.col("a").ewm_mean(alpha=0.7), | ||
) | ||
``` | ||
is not - `Expr.ewm_mean` only appears in the Polars API reference, but not in the Narwhals | ||
one. | ||
|
||
In general, you should expect any fundamental dataframe operation to be supported - if | ||
one that you need is not, please do open a feature request! | ||
- [Top-level functions](narwhals.md) | ||
- [narwhals.DataFrame](dataframe.md) | ||
- [narwhals.Expr](expr.md) | ||
- [narwhals.Expr.cat](expr_cat.md) | ||
- [narwhals.Expr.dt](expr_dt.md) | ||
- [narwhals.Expr.name](expr_name.md) | ||
- [narwhals.Expr.str](expr_str.md) | ||
- [narwhals.GroupBy](group_by.md) | ||
- [narwhals.LazyFrame](lazyframe.md) | ||
- [narwhals.Schema](schema.md) | ||
- [narwhals.Series](series.md) | ||
- [narwhals.Series.cat](series_cat.md) | ||
- [narwhals.Series.dt](series_dt.md) | ||
- [narwhals.Series.str](series_str.md) | ||
- [narwhals.dependencies](dependencies.md) | ||
- [narwhals.dtypes](dtypes.md) | ||
- [narwhals.selectors](selectors.md) | ||
- [narwhals.typing](typing.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,7 @@ | |
- select | ||
- sort | ||
- tail | ||
- to_native | ||
- unique | ||
- with_columns | ||
- with_row_index | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
- contains | ||
- ends_with | ||
- head | ||
- len_chars | ||
- replace | ||
- replace_all | ||
- slice | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.