get_the_first_non_null_value_in_each_column
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
get_the_first_non_null_value_in_each_column [2021/09/15 22:01] – [Task] raju | get_the_first_non_null_value_in_each_column [2021/09/15 22:03] (current) – [Use case] raju | ||
---|---|---|---|
Line 72: | Line 72: | ||
===== Get the first value not equal to a number ===== | ===== Get the first value not equal to a number ===== | ||
==== Use case ==== | ==== Use case ==== | ||
- | One downside of using np.nan to denote missing | + | One downside of using np.nan to denote |
dataframe gets " | dataframe gets " | ||
- | A work around is to use a specific integer to denote missing | + | One work around is to use a specific integer to denote |
all integers to be positive, we can use -9999 to denote a missing value. Let's call this | all integers to be positive, we can use -9999 to denote a missing value. Let's call this | ||
special integer NAN_INT. | special integer NAN_INT. |
get_the_first_non_null_value_in_each_column.1631743270.txt.gz · Last modified: 2021/09/15 22:01 by raju