From 94ff302f8c7973021505a882542e5ddd975b98b3 Mon Sep 17 00:00:00 2001 From: Nikita Klimenko Date: Wed, 8 Oct 2025 14:17:47 +0300 Subject: [PATCH] Update documentation of `append` --- docs/StardustDocs/topics/append.md | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/docs/StardustDocs/topics/append.md b/docs/StardustDocs/topics/append.md index a51ca822ea..5c98401281 100644 --- a/docs/StardustDocs/topics/append.md +++ b/docs/StardustDocs/topics/append.md @@ -2,10 +2,27 @@ Adds one or several rows to [`DataFrame`](DataFrame.md) ```kotlin -df.append ( +df.append( "Mike", 15, "John", 17, - "Bill", 30) + "Bill", 30, +) +``` + +If the [compiler plugin](Compiler-Plugin.md) is enabled, a typesafe overload of `append` is available for `@DataSchema` classes. + +```kotlin +@DataSchema +data class Person(val name: String, val age: Int) +``` + +```kotlin +val df = dataFrameOf( + Person("Mike", 15), + Person("John", 17), +) + +df.append(Person("Bill", 30)) ``` **Related operations**: [](appendDuplicate.md)