Skip to content

Commit

Permalink
Fix outdated parameter name and remove non-existing syntax from grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
koperagen committed Feb 6, 2025
1 parent c9355fe commit df3f950
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/StardustDocs/topics/reorder.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Returns [`DataFrame`](DataFrame.md) with a new order of selected columns.
```text
reorder { columns }
[.cast<ColumnType>() ]
.by { columnExpression } | .byDesc { columnExpression } | .byName(desc = false) { columnExpression }
.by { columnExpression } | .byDesc { columnExpression } | .byName(desc = false)
columnExpression: DataColumn.(DataColumn) -> Value
```
Expand Down Expand Up @@ -74,19 +74,19 @@ df.reorder { name }.byName(desc = true) // [name.lastName, name.firstName]
Reorders all columns

```text
reorderColumnsBy(dfs = true, desc = false) { columnExpression }
reorderColumnsBy(atAnyDepth = true, desc = false) { columnExpression }
```

**Parameters:**
* `dfs` — reorder columns inside [`ColumnGroups`](DataColumn.md#columngroup) and [`FrameColumn`](DataColumn.md#framecolumn) recursively
* `atAnyDepth` — reorder columns inside [`ColumnGroups`](DataColumn.md#columngroup) and [`FrameColumn`](DataColumn.md#framecolumn) recursively
* `desc` — apply descending order

## reorderColumnsByName

```text
reorderColumnsByName(dfs = true, desc = false)
reorderColumnsByName(atAnyDepth = true, desc = false)
```

**Parameters:**
* `dfs` — reorder columns inside [`ColumnGroups`](DataColumn.md#columngroup) and [`FrameColumn`](DataColumn.md#framecolumn) recursively
* `atAnyDepth` — reorder columns inside [`ColumnGroups`](DataColumn.md#columngroup) and [`FrameColumn`](DataColumn.md#framecolumn) recursively
* `desc` — apply descending order

0 comments on commit df3f950

Please sign in to comment.