multimeric / PandasSchema

A validation library for Pandas data frames using user-friendly schemas
https://multimeric.github.io/PandasSchema/
GNU General Public License v3.0
189 stars 35 forks source link

Cannot set `allow_missing=True` for numeric column #14

Closed caddac closed 5 years ago

caddac commented 6 years ago

Probably related #5 and #13, I can't set allow_missing=True on a column that is of a numeric type, then run a InRangeValidation on that column. I get the error raise AttributeError("Can only use .str accessor with string " AttributeError: Can only use .str accessor with string values, which use np.object_ dtype in pandas at https://github.com/TMiguelT/PandasSchema/blob/1742791a8e6fa22380d6f49693148de99fd7ec5d/pandas_schema/validation.py#L87

caddac commented 6 years ago

shows my error case: https://github.com/TMiguelT/PandasSchema/pull/15

multimeric commented 5 years ago

Closed by #15