go-gota / gota

Gota: DataFrames and data wrangling in Go (Golang)
Other
2.97k stars 276 forks source link

Fix Issue #169 - NA is converted to NaN #175

Open prliu opened 2 years ago

prliu commented 2 years ago

ISSUE


It doesn't seem to matter what the column type is in the data frame NA will always get converted to NaN.

SOLUTION


Check the user defined types first, if type is specified as string, it will skip the converting process.

This PR fix issue #169, it includes a patch and an associated test case.