Closed antoine-gallix closed 11 months ago
I get the same error with skip=("",)
and skip=lambda v:v==""
Hey @antoine-gallix! So skip
is actually checked against the value after evaluating the spec passed to Coalesce
(float
, in this case). Depending on your use case, you might want to do skip_exc=ValueError
to skip un-float
-ables. Hope this helps!
Below a snippet of code where I convert variables to float. I want to skip trying to convert empty strings and have the default value instead. But I can't seem to make the
skip
option work.My expected result would be
[1, 1, None]
Am I understanding something wrong with how to use
skip
? The documentation is unclear.