(self, dtype: np.dtype)
| 1000 | return nrowsinbuf |
| 1001 | |
| 1002 | def _getemptyarray(self, dtype: np.dtype) -> np.ndarray: |
| 1003 | # Acts as a cache for empty arrays |
| 1004 | key = dtype |
| 1005 | if key in self._empty_array_cache: |
| 1006 | return self._empty_array_cache[key] |
| 1007 | else: |
| 1008 | self._empty_array_cache[key] = arr = np.empty(shape=0, dtype=key) |
| 1009 | return arr |
| 1010 | |
| 1011 | def _get_container(self, shape: int) -> np.ndarray: |
| 1012 | """Get the appropriate buffer for data depending on table nestedness.""" |