MCPcopy Create free account
hub / github.com/apache/arrow / test_all_nones

Method test_all_nones

python/pyarrow/tests/test_pandas.py:3212–3223  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3210 _check_array_roundtrip(col, mask=strided_mask)
3211
3212 def test_all_nones(self):
3213 def _check_series(s):
3214 converted = pa.array(s)
3215 assert isinstance(converted, pa.NullArray)
3216 assert len(converted) == 3
3217 assert converted.null_count == 3
3218 for item in converted:
3219 assert item is pa.NA
3220
3221 _check_series(pd.Series([None] * 3, dtype=object))
3222 _check_series(pd.Series([np.nan] * 3, dtype=object))
3223 _check_series(pd.Series([None, np.nan, None], dtype=object))
3224
3225 def test_partial_schema(self):
3226 data = OrderedDict([

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected