-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Restructure docs a bit (#1007)
* restructure docs a bit * missing file * fix link
- Loading branch information
1 parent
f0b31ee
commit 8b2b30b
Showing
9 changed files
with
144 additions
and
150 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
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
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Roadmap and related projects | ||
|
||
## Roadmap | ||
|
||
Priorities, as of September 2024, are: | ||
|
||
- Works towards supporting projects which have shown interest in Narwhals. | ||
- Add extra docs and tutorials to make the project more accessible and easy to get started with. | ||
- Improve support for cuDF, which we can't currently test in CI (unless NVIDIA helps us out :wink:) but | ||
which we can and do test manually in Kaggle notebooks. | ||
- Define a lazy-only layer of support which can include DuckDB, Ibis, and PySpark. | ||
|
||
## Related projects | ||
|
||
### Dataframe Interchange Protocol | ||
|
||
Standardised way of interchanging data between libraries, see | ||
[here](https://data-apis.org/dataframe-protocol/latest/index.html). | ||
|
||
Narwhals builds upon it by providing one level of support to libraries which implement it - | ||
this includes Ibis and Vaex. See [extending](extending.md) for details. | ||
|
||
### Array API | ||
|
||
Array counterpart to the DataFrame API, see [here](https://data-apis.org/array-api/2022.12/index.html). |
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