Skip to content

Commit 35d92fa

Browse files
committed
Update documentation of append
1 parent 2be6c10 commit 35d92fa

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

docs/StardustDocs/topics/append.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,27 @@
22

33
Adds one or several rows to [`DataFrame`](DataFrame.md)
44
```kotlin
5-
df.append (
5+
df.append(
66
"Mike", 15,
77
"John", 17,
8-
"Bill", 30)
8+
"Bill", 30,
9+
)
10+
```
11+
12+
If the compiler plugin enabled, typesafe overload of `append` is available for `@DataSchema` classes.
13+
14+
```
15+
@DataSchema
16+
data class Person(val name: String, val age: Int)
17+
```
18+
19+
```kotlin
20+
val df = dataFrameOf(
21+
Person("Mike", 15),
22+
Person("John", 17),
23+
)
24+
25+
df.append(Person("Bill", 30))
926
```
1027

1128
**Related operations**: [](appendDuplicate.md)

0 commit comments

Comments
 (0)