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

Method null_count

python/pyarrow/interchange/column.py:382–390  ·  view source on GitHub ↗

Number of null elements, if known. Note: Arrow uses -1 to indicate "unknown", but None seems cleaner.

(self)

Source from the content-addressed store, hash-verified

380
381 @property
382 def null_count(self) -> int:
383 """
384 Number of null elements, if known.
385
386 Note: Arrow uses -1 to indicate "unknown", but None seems cleaner.
387 """
388 arrow_null_count = self._col.null_count
389 n = arrow_null_count if arrow_null_count != -1 else None
390 return n
391
392 @property
393 def metadata(self) -> Dict[str, Any]:

Callers 12

VisitSequenceMaskedFunction · 0.45
WriteArrayObjectsFunction · 0.45
ValidateBuilderMethod · 0.45
CheckNotZeroCopyOnlyMethod · 0.45
ConvertStructFunction · 0.45
ConvertListsLikeFunction · 0.45
ConvertMapHelperFunction · 0.45
ConvertNumericNullableFunction · 0.45
IsNonNullContiguousFunction · 0.45
WriteIndicesMethod · 0.45
GetPandasWriterTypeFunction · 0.45
ReadNextMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected