Skip to content

Commit

Permalink
fixup api reference example
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoGorelli committed Apr 9, 2024
1 parent bc1a7e8 commit 1a335c7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions docs/api-reference/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ For example:
```python
import narwhals as nw

nw: DataFrame
nw.with_columns(
df.with_columns(
a_mean = nw.col('a').mean(),
a_std = nw.col('a').std(),
)
Expand All @@ -20,8 +19,7 @@ However,
```python
import narwhals as nw

nw: DataFrame
nw.with_columns(
df.with_columns(
a_ewm_mean = nw.col('a').ewm_mean(alpha=.7),
)
```
Expand Down

0 comments on commit 1a335c7

Please sign in to comment.