-
Notifications
You must be signed in to change notification settings - Fork 73
NA and NaN docs #411
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NA and NaN docs #411
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,6 +35,7 @@ | |
<toc-element topic="DataColumn.md"/> | ||
<toc-element topic="DataRow.md"/> | ||
</toc-element> | ||
<toc-element topic="nanAndNa.md"/> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. probably better to move under operations (for first time) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. But it's not an operation. I'm not comfortable having it there, seems weird. Probably we can find a better place after restructuring the docs/flattening them. |
||
<toc-element topic="operations.md"/> | ||
<toc-element toc-title="Operations"> | ||
<toc-element topic="create.md"> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
[//]: # (title: NaN and NA) | ||
|
||
Using the Kotlin DataFrame library, you might come across the terms `NaN` and `NA`. | ||
This page explains what they mean and how to work with them. | ||
|
||
## NaN | ||
|
||
`Float` or `Double` values can be represented as `NaN`, | ||
in cases where a mathematical operation is undefined, such as for dividing by zero. The | ||
result of such an operation can only be described as "**N**ot **a** **N**umber". | ||
|
||
This is different from `null`, which means that a value is missing and, in Kotlin, can only occur | ||
for `Float?` and `Double?` types. | ||
|
||
Jolanrensen marked this conversation as resolved.
Show resolved
Hide resolved
|
||
You can use [fillNaNs](fill.md#fillnans) to replace `NaNs` in certain columns with a given value or expression | ||
or [dropNaNs](drop.md#dropnans) to drop rows with `NaNs` in them. | ||
|
||
## NA | ||
|
||
`NA` in Dataframe can be seen as: [`NaN`](#nan) or `null`. Which is another way to say that the value | ||
is "**N**ot **A**vailable". | ||
|
||
You can use [fillNA](fill.md#fillna) to replace `NAs` in certain columns with a given value or expression | ||
or [dropNA](drop.md#dropna) to drop rows with `NAs` in them. |
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like a new pattern to refer on the Documentation site. Is it correct that we did not do it earlier?
It seems good idea, but probably let's discuss it widely.
Because it looks like adding yet one detail to the hierarchy of documents produced by your plugin
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it was used before in Update.kt and Nulls.kt, you can see the other URLs in the file ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For now I see, thanks