(shm, shape, dtype)
| 320 | |
| 321 | @staticmethod |
| 322 | def shm2s(shm, shape, dtype) -> pd.Series: |
| 323 | arr = np.ndarray(shape, dtype=dtype.base, buffer=shm.buf) |
| 324 | arr.setflags(write=False) |
| 325 | return pd.Series(arr, dtype=dtype) |
| 326 | |
| 327 | _DF_INDEX_COL = '__bt_index' |
| 328 |