Skip to content

Commit

Permalink
Added a link to the missed datset titanic.csv (#389)
Browse files Browse the repository at this point in the history
* Add the dataset used in the documentation

* Added the links to the dataset
  • Loading branch information
zaleslaw authored Jun 7, 2023
1 parent 4875411 commit c71c30f
Show file tree
Hide file tree
Showing 7 changed files with 1,322 additions and 0 deletions.
1,310 changes: 1,310 additions & 0 deletions data/titanic.csv

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions docs/StardustDocs/topics/KPropertiesApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,5 @@ val passengers = DataFrame.read("titanic.csv")
```

<!---END-->

The `titanic.csv` file could be found [here](https://github.com/Kotlin/dataframe/blob/master/data/titanic.csv).
2 changes: 2 additions & 0 deletions docs/StardustDocs/topics/apiLevels.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ df.add("lastName") { name.split(",").last() }

</tabs>

The `titanic.csv` file could be found [here](https://github.com/Kotlin/dataframe/blob/master/data/titanic.csv).

# Comparing the APIs

The [String API](stringApi.md) is the simplest and unsafest of them all. The main advantage of it is that it can be
Expand Down
2 changes: 2 additions & 0 deletions docs/StardustDocs/topics/columnAccessorsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ DataFrame.read("titanic.csv")

<!---END-->

The `titanic.csv` file could be found [here](https://github.com/Kotlin/dataframe/blob/master/data/titanic.csv).

<warning>
Note that it still doesn’t solve the problem of whether the column actually exists in a data frame, but reduces type casting.
</warning>
2 changes: 2 additions & 0 deletions docs/StardustDocs/topics/extensionPropertiesApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ df.add("lastName") { name.split(",").last() }

<!---END-->

The `titanic.csv` file could be found [here](https://github.com/Kotlin/dataframe/blob/master/data/titanic.csv).

In notebooks, extension properties are generated for [`DataSchema`](schemas.md) that is extracted from [`DataFrame`](DataFrame.md)
instance after REPL line execution.
After that [`DataFrame`](DataFrame.md) variable is typed with its own [`DataSchema`](schemas.md), so only valid extension properties corresponding to actual columns in DataFrame will be allowed by the compiler and suggested by completion.
Expand Down
2 changes: 2 additions & 0 deletions docs/StardustDocs/topics/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ df.groupBy { pclass }.aggregate {
}
```

The `titanic.csv` file could be found [here](https://github.com/Kotlin/dataframe/blob/master/data/titanic.csv).

**Create:**
```kotlin
// create columns
Expand Down
2 changes: 2 additions & 0 deletions docs/StardustDocs/topics/stringApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ DataFrame.read("titanic.csv")

<!---END-->

The `titanic.csv` file could be found [here](https://github.com/Kotlin/dataframe/blob/master/data/titanic.csv).

<warning>
Note that if data frame doesn’t contain column with the string provided, or you try to cast to the wrong type it will lead to runtime exception.
</warning>

0 comments on commit c71c30f

Please sign in to comment.