Skip to content

Commit

Permalink
fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
pfackeldey committed Oct 9, 2024
1 parent 894d1d0 commit fb001b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/user-guide/how-to-array-properties-named-axis.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,14 @@ named_array = ak.with_named_axis(array, named_axis=("x", "y"))
named_array = ak.with_named_axis(array, named_axis={"x": 0, "y": 1})
```

After attaching named axes, you can see the named axes comma-separated in the arrays representation and in `.show(axes=True)`:
After attaching named axes, you can see the named axes comma-separated in the arrays representation and in `.show(named_axis=True)`:

```{code-cell}
ak.Array([[1, 2], [3], [], [4, 5, 6]], named_axis=("x", "y"))
```

```{code-cell}
ak.Array([[1, 2], [3], [], [4, 5, 6]], named_axis=("x", "y")).show(axes=True)
ak.Array([[1, 2], [3], [], [4, 5, 6]], named_axis=("x", "y")).show(named_axis=True)
```

Accessing the named axis mapping to positional axis can be done using the `named_axis` and `positional_axis` properties:
Expand Down

0 comments on commit fb001b4

Please sign in to comment.