Convert self into a regular ndarray of ints. This is an O(1) operation. It does not copy the underlying data.
(self)
| 306 | self._missing_value = getattr(obj, 'missing_value', None) |
| 307 | |
| 308 | def as_int_array(self): |
| 309 | """ |
| 310 | Convert self into a regular ndarray of ints. |
| 311 | |
| 312 | This is an O(1) operation. It does not copy the underlying data. |
| 313 | """ |
| 314 | return self.view( |
| 315 | type=ndarray, |
| 316 | dtype=unsigned_int_dtype_with_size_in_bytes(self.itemsize), |
| 317 | ) |
| 318 | |
| 319 | def as_string_array(self): |
| 320 | """ |