acowley / Frames

Data frames for tabular data.
Other
297 stars 41 forks source link

is there a simple way of providing defaults , across columns #141

Open gregnwosu opened 4 years ago

gregnwosu commented 4 years ago

i want to read columns even if they didn't parse and provide defaults, I've convinced my producer to allow me to map across my maybe ElFied to a proper record. is there an elegant implementation?

kk :: Rec (Maybe :. ElField)  (RecordColumns GameData) -> Rec ( ElField)  (RecordColumns GameData)
kk x = undefined
o1lo01ol1o commented 4 years ago

What about the default value approach in https://github.com/acowley/Frames/blob/master/demo/MissingData.hs ?