Skip to content

Commit c7b1004

Browse files
Automated commit of generated code
1 parent 111c0ff commit c7b1004

File tree

142 files changed

+200
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

142 files changed

+200
-0
lines changed

core/generated-sources/src/test/kotlin/org/jetbrains/kotlinx/dataframe/samples/api/Modify.kt

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1464,4 +1464,63 @@ class Modify : TestBase() {
14641464
}
14651465
// SampleEnd
14661466
}
1467+
1468+
@Test
1469+
@TransformDataFrameExpressions
1470+
fun rename_properties() {
1471+
// SampleStart
1472+
df.rename { name }.into("fullName")
1473+
// SampleEnd
1474+
}
1475+
1476+
@Test
1477+
@TransformDataFrameExpressions
1478+
fun rename_accessors() {
1479+
// SampleStart
1480+
val name by columnGroup()
1481+
df.rename(name).into("fullName")
1482+
// SampleEnd
1483+
}
1484+
1485+
@Test
1486+
@TransformDataFrameExpressions
1487+
fun rename_strings() {
1488+
// SampleStart
1489+
df.rename("name").into("fullName")
1490+
// SampleEnd
1491+
}
1492+
1493+
@Test
1494+
@TransformDataFrameExpressions
1495+
fun renameExpression_properties() {
1496+
// SampleStart
1497+
df.rename { age }.into {
1498+
val mean = it.data.mean()
1499+
"age [mean = $mean]"
1500+
}
1501+
// SampleEnd
1502+
}
1503+
1504+
@Test
1505+
@TransformDataFrameExpressions
1506+
fun renameExpression_accessors() {
1507+
// SampleStart
1508+
val age by column<Int>()
1509+
df.rename(age).into {
1510+
val mean = it.data.mean()
1511+
"age [mean = $mean]"
1512+
}
1513+
// SampleEnd
1514+
}
1515+
1516+
@Test
1517+
@TransformDataFrameExpressions
1518+
fun renameExpression_strings() {
1519+
// SampleStart
1520+
df.rename("age").into {
1521+
val mean = it.data.cast<Int>().mean()
1522+
"age [mean = $mean]"
1523+
}
1524+
// SampleEnd
1525+
}
14671526
}

docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.byRow.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959

6060
table.dataframe td {
6161
vertical-align: top;
62+
white-space: nowrap;
6263
}
6364

6465
table.dataframe th.bottomBorder {

docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.columnSelectors.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959

6060
table.dataframe td {
6161
vertical-align: top;
62+
white-space: nowrap;
6263
}
6364

6465
table.dataframe th.bottomBorder {

docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.columnSelectorsMisc.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959

6060
table.dataframe td {
6161
vertical-align: top;
62+
white-space: nowrap;
6263
}
6364

6465
table.dataframe th.bottomBorder {

docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.columnSelectorsModifySet.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959

6060
table.dataframe td {
6161
vertical-align: top;
62+
white-space: nowrap;
6263
}
6364

6465
table.dataframe th.bottomBorder {

docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.columnSelectorsUsages.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959

6060
table.dataframe td {
6161
vertical-align: top;
62+
white-space: nowrap;
6263
}
6364

6465
table.dataframe th.bottomBorder {

docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.columnsSelectorByIndices.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959

6060
table.dataframe td {
6161
vertical-align: top;
62+
white-space: nowrap;
6263
}
6364

6465
table.dataframe th.bottomBorder {

docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.distinct.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959

6060
table.dataframe td {
6161
vertical-align: top;
62+
white-space: nowrap;
6263
}
6364

6465
table.dataframe th.bottomBorder {

docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.distinctBy.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959

6060
table.dataframe td {
6161
vertical-align: top;
62+
white-space: nowrap;
6263
}
6364

6465
table.dataframe th.bottomBorder {

docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.distinctColumns.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959

6060
table.dataframe td {
6161
vertical-align: top;
62+
white-space: nowrap;
6263
}
6364

6465
table.dataframe th.bottomBorder {

0 commit comments

Comments
 (0)