(
cls,
sparse_array: np.ndarray,
sparse_index: SparseIndex,
dtype: SparseDtype,
)
| 507 | |
| 508 | @classmethod |
| 509 | def _simple_new( |
| 510 | cls, |
| 511 | sparse_array: np.ndarray, |
| 512 | sparse_index: SparseIndex, |
| 513 | dtype: SparseDtype, |
| 514 | ) -> Self: |
| 515 | new = object.__new__(cls) |
| 516 | new._sparse_index = sparse_index |
| 517 | new._sparse_values = sparse_array |
| 518 | new._dtype = dtype |
| 519 | return new |
| 520 | |
| 521 | @classmethod |
| 522 | def from_spmatrix(cls, data: _SparseMatrixLike) -> Self: |
no test coverage detected