MCPcopy Create free account
hub / github.com/numpy/numpy / test_keep_missing_values

Method test_keep_missing_values

numpy/lib/tests/test__iotools.py:244–249  ·  view source on GitHub ↗

Check that we're not losing missing values

(self)

Source from the content-addressed store, hash-verified

242 assert_equal(converter.default, 0)
243
244 def test_keep_missing_values(self):
245 "Check that we're not losing missing values"
246 converter = StringConverter(int, default=0,
247 missing_values="N/A")
248 assert_equal(
249 converter.missing_values, {'', 'N/A'})
250
251 def test_int64_dtype(self):
252 "Check that int64 integer types can be specified"

Callers

nothing calls this directly

Calls 2

StringConverterClass · 0.90
assert_equalFunction · 0.90

Tested by

no test coverage detected