MCPcopy
hub / github.com/pandas-dev/pandas / _get_column_array

Method _get_column_array

pandas/core/frame.py:4316–4324  ·  view source on GitHub ↗

Get the values of the i'th column (ndarray or ExtensionArray, as stored in the Block) Warning! The returned array is a view but doesn't handle Copy-on-Write, so this should be used with caution (for read-only purposes).

(self, i: int)

Source from the content-addressed store, hash-verified

4314 return self._box_col_values(col_mgr, i)
4315
4316 def _get_column_array(self, i: int) -> ArrayLike:
4317 """
4318 Get the values of the i'th column (ndarray or ExtensionArray, as stored
4319 in the Block)
4320
4321 Warning! The returned array is a view but doesn't handle Copy-on-Write,
4322 so this should be used with caution (for read-only purposes).
4323 """
4324 return self._mgr.iget_values(i)
4325
4326 def _iter_column_arrays(self) -> Iterator[ArrayLike]:
4327 """

Callers 3

_iter_column_arraysMethod · 0.95
get_arrayFunction · 0.80

Calls 1

iget_valuesMethod · 0.80