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

Method size

python/pyarrow/interchange/column.py:241–251  ·  view source on GitHub ↗

Size of the column, in elements. Corresponds to DataFrame.num_rows() if column is a single chunk; equal to size of this current chunk otherwise. Is a method rather than a property because it may cause a (potentially expensive) computation for some dataframe

(self)

Source from the content-addressed store, hash-verified

239 self._dtype = self._dtype_from_arrowdtype(dtype, bit_width)
240
241 def size(self) -> int:
242 """
243 Size of the column, in elements.
244
245 Corresponds to DataFrame.num_rows() if column is a single chunk;
246 equal to size of this current chunk otherwise.
247
248 Is a method rather than a property because it may cause a (potentially
249 expensive) computation for some dataframe implementations.
250 """
251 return len(self._col)
252
253 @property
254 def offset(self) -> int:

Callers 15

get_chunksMethod · 0.95
check_large_seeksFunction · 0.45
test_python_file_readFunction · 0.45
test_bytes_readerFunction · 0.45
test_mock_output_streamFunction · 0.45
test_memory_map_writerFunction · 0.45
test_memory_zero_lengthFunction · 0.45
test_os_file_writerFunction · 0.45
test_datetimeFunction · 0.45

Calls 1

lenFunction · 0.85

Tested by 15

check_large_seeksFunction · 0.36
test_python_file_readFunction · 0.36
test_bytes_readerFunction · 0.36
test_mock_output_streamFunction · 0.36
test_memory_map_writerFunction · 0.36
test_memory_zero_lengthFunction · 0.36
test_os_file_writerFunction · 0.36
test_datetimeFunction · 0.36