Skip to content

Commit 199f8e1

Browse files
committed
fixed up to ColumnSelectors.md
1 parent 31ec7b6 commit 199f8e1

File tree

6 files changed

+22
-22
lines changed

6 files changed

+22
-22
lines changed

docs/StardustDocs/topics/add.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ df.add("year of birth") { 2021 - "age"<Int>() }
4444

4545
See [row expressions](DataRow.md#row-expressions)
4646

47-
You can use `newValue()` function to access value that was already calculated for the preceding row.
47+
You can use the `newValue()` function to access value that was already calculated for the preceding row.
4848
It is helpful for recurrent computations:
4949

5050
<!---FUN addRecurrent-->
@@ -224,8 +224,8 @@ df.add(df1, df2)
224224

225225
## addId
226226

227-
Adds column with sequential values 0, 1, 2,...
228-
New column will be added in the beginning of a column list
227+
Adds a column with sequential values 0, 1, 2,...
228+
The new column will be added in the beginning of the column list
229229
and will become the first column in [`DataFrame`](DataFrame.md).
230230

231231
```

docs/StardustDocs/topics/adjustSchema.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[//]: # (title: Adjust schema)
22

3-
[`DataFrame`](DataFrame.md) interface has type argument `T` that doesn't affect the contents of [`DataFrame`](DataFrame.md),
3+
The [`DataFrame`](DataFrame.md) interface has type argument `T` that doesn't affect the contents of [`DataFrame`](DataFrame.md),
44
but marks [`DataFrame`](DataFrame.md) with a type that represents the data schema that this [`DataFrame`](DataFrame.md) is supposed to have.
55
This argument is used to generate [extension properties](extensionPropertiesApi.md) for typed data access.
66

docs/StardustDocs/topics/apiLevels.md

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

33
<!---IMPORT org.jetbrains.kotlinx.dataframe.samples.api.ApiLevels-->
44

5-
By nature, data frames are dynamic objects,
6-
column labels depend on the input source, and also new columns could be added
5+
By nature, data frames are dynamic objects;
6+
column labels depend on the input source and new columns can be added
77
or deleted while wrangling.
8-
Kotlin, in contrast, is a statically typed language and all types are defined and verified
8+
Kotlin, in contrast, is a statically typed language where all types are defined and verified
99
ahead of execution.
1010

1111
That's why creating a flexible, handy, and, at the same time, safe API to a data frame is tricky.
@@ -16,7 +16,7 @@ look pretty similar in the data wrangling DSL.
1616

1717
## List of Access APIs
1818

19-
Here's a list of all APIs in order to increase safety.
19+
Here's a list of all APIs in order of increasing safety.
2020

2121
* [**String API**](stringApi.md) <br/>
2222
Columns are accessed by `string` representing their name. Type-checking is done at runtime, name-checking too.
@@ -147,18 +147,18 @@ df.add("weight") { ... } // add a new column `weight`, calculated by some expres
147147

148148
We don't need to interrupt a function call chain and declare a column accessor or generate new properties.
149149

150-
In contrast, generated [extension properties](extensionPropertiesApi.md) are the most convenient and the safest API.
151-
Using it, you can always be sure that you work with correct data and types.
152-
But its bottleneck is the moment of a generation.
150+
In contrast, generated [extension properties](extensionPropertiesApi.md) form the most convenient and the safest API.
151+
Using them, you can always be sure that you work with correct data and types.
152+
However, there's a bottleneck at the moment of generation.
153153
To get new extension properties, you have to run a cell in a notebook,
154154
which could lead to unnecessary variable declarations.
155-
Currently, we are working on a compiler with a plugin that generates these properties on the fly while typing!
155+
Currently, we are working on a compiler plugin that generates these properties on the fly while typing!
156156

157157
The [Column Accessors API](columnAccessorsApi.md) is a kind of trade-off between safety and needs to be written ahead of
158158
the execution type declaration. It was designed to better be able to write code in an IDE without a notebook experience.
159159
It provides type-safe access to columns but doesn't ensure that the columns really exist in a particular data frame.
160160

161-
The [KProperties API](KPropertiesApi.md) is useful when you already have declared classed in your application business
161+
The [KProperties API](KPropertiesApi.md) is useful when you already have declared classed in your business
162162
logic with fields that correspond to columns of a data frame.
163163

164164
<table>

docs/StardustDocs/topics/cast.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
[//]: # (title: cast)
22
<!---IMPORT org.jetbrains.kotlinx.dataframe.samples.api.Modify-->
33

4-
Changes type argument of [`DataFrame`](DataFrame.md) without changing its contents.
4+
Changes the type argument of the [`DataFrame`](DataFrame.md) instance without changing its contents.
55

66
```kotlin
77
cast<T>(verify = false)
88
```
99

1010
**Parameters:**
1111
* `verify: Boolean = false`
12-
when `true`, throws exception if [`DataFrame`](DataFrame.md) doesn't match the given schema.
13-
Otherwise, just change a format type without actual data check.
12+
when `true`, the function throws an exception if the [`DataFrame`](DataFrame.md) instance doesn't match the given schema.
13+
Otherwise, it just changes the format type without actual data checks.
1414

15-
Use this operation to change a formal type of [`DataFrame`](DataFrame.md)
15+
Use this operation to change the formal type of a [`DataFrame`](DataFrame.md) instance
1616
to match the expected schema and enable generated [extension properties](extensionPropertiesApi.md) for it.
1717

1818
```kotlin

docs/StardustDocs/topics/collectionsInterop.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ _Kotlin DataFrame_ and _Kotlin Collection_ represent two different approaches to
88
* `Collection` stores data by records/rows
99

1010
Although [`DataFrame`](DataFrame.md)
11-
doesn't implement [`Collection`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-collection/#kotlin.collections.Collection)
11+
doesn't implement the [`Collection`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-collection/#kotlin.collections.Collection)
1212
or [`Iterable`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-iterable/)
1313
interface, it has many similar operations,
1414
such as [`filter`](filter.md), [`take`](sliceRows.md#take),
@@ -77,12 +77,12 @@ val df2 = df.add("c") { a + b }
7777

7878
<tip>
7979

80-
To enable extension properties generation you should use [dataframe plugin](schemasGradle.md)
81-
for Gradle or [Kotlin jupyter kernel](installation.md)
80+
To enable extension properties generation, you should use the [DataFrame plugin](schemasGradle.md)
81+
for Gradle or the [Kotlin Jupyter kernel](installation.md)
8282

8383
</tip>
8484

85-
After data is transformed, [`DataFrame`](DataFrame.md) can be exported
85+
After your data is transformed, [`DataFrame`](DataFrame.md) instances can be exported
8686
into [`List`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/) of another data class using [toList](toList.md) or [toListOf](toList.md#tolistof) extensions:
8787

8888
<!---FUN listInterop4-->
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[//]: # (title: columnNames)
22

3-
Returns a list of names for top-level columns of [`DataFrame`](DataFrame.md).
3+
Returns a list of names for top-level columns of the [`DataFrame`](DataFrame.md) instance.

0 commit comments

Comments
 (0)