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

Method iget_values

pandas/core/internals/managers.py:1240–1250  ·  view source on GitHub ↗

Return the data for column i as the values (ndarray or ExtensionArray). Warning! The returned array is a view but doesn't handle Copy-on-Write, so this should be used with caution.

(self, i: int)

Source from the content-addressed store, hash-verified

1238 return SingleBlockManager(nb, self.axes[1].view())
1239
1240 def iget_values(self, i: int) -> ArrayLike:
1241 """
1242 Return the data for column i as the values (ndarray or ExtensionArray).
1243
1244 Warning! The returned array is a view but doesn't handle Copy-on-Write,
1245 so this should be used with caution.
1246 """
1247 # TODO(CoW) making the arrays read-only might make this safer to use?
1248 block = self.blocks[self.blknos[i]]
1249 values = block.iget(self.blklocs[i])
1250 return values
1251
1252 @property
1253 def column_arrays(self) -> list[np.ndarray]:

Callers 1

_get_column_arrayMethod · 0.80

Calls 1

igetMethod · 0.45

Tested by

no test coverage detected