File tree Expand file tree Collapse file tree
core/src/test/kotlin/org/jetbrains/kotlinx/dataframe/samples/api Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 44
55Two 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
5431See [ 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 )
You can’t perform that action at this time.
0 commit comments