frictionlessdata / tableschema-go

A Go library for working with Table Schema.
MIT License
46 stars 10 forks source link

Add MissingValues option to Infer and InferImplicitCasting #40

Open danielfireman opened 7 years ago

danielfireman commented 7 years ago

Currently, Infer and InferImplicitCasting only receive a table as a parameter, but there are some other important inputs, for instance, missingValues.

As an example, please take a look at the Schema and Configuration section our the Readme. When the "N/A" is used as missingValue, the algorithm cannot properly detect the integer type. So my first suggestion would be to follow the functional options approach, which was already used in csv.NewTable.