We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f31b270 commit 267251dCopy full SHA for 267251d
tableschema/field.py
@@ -79,12 +79,15 @@ def descriptor(self):
79
"""
80
return self.__descriptor
81
82
- def cast_value(self, value, constraints=True):
+ def cast_value(self, value, constraints=True, preserve_missing_values=False):
83
"""https://github.com/frictionlessdata/tableschema-py#field
84
85
86
# Null value
87
if value in self.__missing_values:
88
+ # If missing_values should be preserved without being cast
89
+ if preserve_missing_values:
90
+ return value
91
value = None
92
93
# Cast value
0 commit comments