You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The parse function passed as options to methods like loadCSV()only get called on non-null values. I learned this when parsing data exported from a system that represents values from a checkbox widget as 1 if the box is checked and null otherwise. I wanted to convert these to true or false using a function to parse the values on load. However, this function only got called on the non-null values. There are a number of workarounds (parse values outside of Arquero, do it after load with table.derive(), fill null values with false), but it would have been nice to understand why my code wasn't behaving as expected.
There are a number of workarounds, but it would either be helpful to document this behavior, or change it to call the parser on all values. I'm assuming skipping null values is an optimization, so if the path forward is a documentation mention, I can submit a PR with how I'd phrase it in the API docs.
The text was updated successfully, but these errors were encountered:
The parse function passed as options to methods like
loadCSV()
only get called on non-null values. I learned this when parsing data exported from a system that represents values from a checkbox widget as1
if the box is checked andnull
otherwise. I wanted to convert these totrue
orfalse
using a function to parse the values on load. However, this function only got called on the non-null values. There are a number of workarounds (parse values outside of Arquero, do it after load withtable.derive()
, fill null values with false), but it would have been nice to understand why my code wasn't behaving as expected.There are a number of workarounds, but it would either be helpful to document this behavior, or change it to call the parser on all values. I'm assuming skipping null values is an optimization, so if the path forward is a documentation mention, I can submit a PR with how I'd phrase it in the API docs.
The text was updated successfully, but these errors were encountered: