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

Method _check_series

python/pyarrow/tests/test_pandas.py:3213–3219  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

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))

Callers

nothing calls this directly

Calls 2

lenFunction · 0.85
arrayMethod · 0.45

Tested by

no test coverage detected