NaN and NA
Using the Kotlin DataFrame library, you might come across the terms
NA. This page explains what they mean and how to work with them.
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 " Not a Number".
This is different from
null, which means that a value is missing and, in Kotlin, can only occur for
NA in Dataframe can be seen as:
null. Which is another way to say that the value is " Not Available".