Skip to content

Commit 59544c4

Browse files
committed
korro
1 parent b7b2778 commit 59544c4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/StardustDocs/topics/createDataFrame.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ val students = listOf(
152152
Student(Name("Bob", "Marley"), 20, listOf(Score("music", 5)))
153153
)
154154

155-
val df = students.toDataFrame(depth = 2)
155+
val df = students.toDataFrame(maxDepth = 1)
156156
```
157157

158158
<!---END-->
@@ -167,7 +167,7 @@ val df = students.toDataFrame {
167167
"year of birth" from { 2021 - it.age }
168168

169169
// scan all properties
170-
properties(depth = 2) {
170+
properties(maxDepth = 1) {
171171
exclude(Score::subject) // `subject` property will be skipped from object graph traversal
172172
preserve<Name>() // `Name` objects will be stored as-is without transformation into DataFrame
173173
}

docs/StardustDocs/topics/move.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ df.move { name.cols() }.toTop()
4343

4444
// a.b.e -> be
4545
// c.d.e -> de
46-
df.move { dfs { it.name() == "e" } }.toTop { it.parent!!.name() + it.name() }
46+
df.move { dfs { it.name() == "e" } }.toTop { it.parentName + it.name() }
4747
```
4848

4949
<!---END-->

0 commit comments

Comments
 (0)