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