-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wip docs: Restructure docs #988
Draft
MarcoGorelli
wants to merge
2
commits into
narwhals-dev:main
Choose a base branch
from
MarcoGorelli:restructure-docs
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+105
−156
Draft
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 [levels](levels.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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be out of the
coming_from_pandas
section?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in my head I was thinking "if you're coming from pandas, rest assured, this won't make your pandas code slower", but idk, writing docs is so hard