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
Copy file name to clipboardExpand all lines: PROCESSORS.md
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -77,6 +77,10 @@ Relevant only when _not_ loading data from a datapackage:
77
77
-`load.CAST_DO_NOTHING` - Data will be passed as-is without modifications or validation
78
78
-`load.CAST_WITH_SCHEMA` - Data will be parsed and casted using the schema and will error in case of faulty data
79
79
-`override_schema` - Provided dictionary will be merged into the inferred schema. If `fields` key is set its contents will fully replace the inferred fields array. The same behavior will be applied for all other nested structures.
80
+
-`extract_missing_values (bool|dict)` - If `True` it will extract missing values defined in a schema and place in to a new field called `missingValues` with a type `object` in a form of `{field1: value1, field2: value2}`. If a row doesn't have any missing values the field will get an empty object. This option can be a hash with 3 optional keys `source`, `target` and `values` where:
81
+
-`source (str|str[])` - a field or list of fields to extract missing values (default: all fields)
82
+
-`target (str)` - a field to place a missing values mapping (default: `missingValues`)
83
+
-`values (str[])` - an alternative list of missing values (default: `schema['missingValues']`)
80
84
-`override_fields` - Provided mapping will patch the inferred `schema.fields` array. In the mapping keys must be field names and values must be dictionaries intended to be merged into the corresponding field's metadata.
81
85
-`deduplicate_headers` - (default `False`) If there are duplicate headers and the flag is set to `True` it will rename them using a `header (1), header (2), etc` approach. If there are duplicate headers and the flag is set to `False` it will raise an error.
82
86
-`on_error` - Dictates how `load` will behave in case of a validation error.
0 commit comments