Skip to content

Commit d927d4b

Browse files
committed
Remove the example of deprecated df.get
1 parent c1d8b92 commit d927d4b

2 files changed

Lines changed: 14 additions & 32 deletions

File tree

  • core/src/test/kotlin/org/jetbrains/kotlinx/dataframe/samples/api
  • docs/StardustDocs/topics

core/src/test/kotlin/org/jetbrains/kotlinx/dataframe/samples/api/Access.kt

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -200,15 +200,7 @@ class Access : TestBase() {
200200

201201
@Test
202202
@TransformDataFrameExpressions
203-
fun getColumnsByName_properties() {
204-
// SampleStart
205-
df[df.age, df.weight]
206-
// SampleEnd
207-
}
208-
209-
@Test
210-
@TransformDataFrameExpressions
211-
fun getColumnsByName_strings() {
203+
fun getColumnsByName() {
212204
// SampleStart
213205
df["age", "weight"]
214206
// SampleEnd

docs/StardustDocs/topics/select.md

Lines changed: 13 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,6 @@
44

55
Two ways to create [`DataFrame`](DataFrame.md) with a subset of columns:
66

7-
**indexing:**
8-
9-
<!---FUN getColumnsByName-->
10-
<tabs>
11-
<tab title="Properties">
12-
13-
```kotlin
14-
df[df.age, df.weight]
15-
```
16-
17-
</tab>
18-
<tab title="Strings">
19-
20-
```kotlin
21-
df["age", "weight"]
22-
```
23-
24-
</tab></tabs>
25-
<inline-frame src="resources/org.jetbrains.kotlinx.dataframe.samples.api.Access.getColumnsByName.html" width="100%"/>
26-
<!---END-->
27-
28-
See [DataFrame indexing](indexing.md)
29-
307
**selecting:**
318

329
<!---FUN select-->
@@ -52,3 +29,16 @@ df.select("age", "weight")
5229
**Related operations**: [remove](remove.md)
5330

5431
See [column selectors](ColumnSelectors.md)
32+
33+
**indexing:**
34+
35+
<!---FUN getColumnsByName-->
36+
37+
```kotlin
38+
df["age", "weight"]
39+
```
40+
41+
<inline-frame src="resources/org.jetbrains.kotlinx.dataframe.samples.api.Access.getColumnsByName.html" width="100%"/>
42+
<!---END-->
43+
44+
See [DataFrame indexing](indexing.md)

0 commit comments

Comments
 (0)