arrays.pyi 938 B

12345678910111213141516171819202122232425262728293031323334
  1. from typing import Sequence
  2. import numpy as np
  3. from pandas._typing import (
  4. DtypeObj,
  5. Shape,
  6. )
  7. class NDArrayBacked:
  8. _dtype: DtypeObj
  9. _ndarray: np.ndarray
  10. def __init__(self, values: np.ndarray, dtype: DtypeObj): ...
  11. @classmethod
  12. def _simple_new(cls, values: np.ndarray, dtype: DtypeObj): ...
  13. def _from_backing_data(self, values: np.ndarray): ...
  14. def __setstate__(self, state): ...
  15. def __len__(self) -> int: ...
  16. @property
  17. def shape(self) -> Shape: ...
  18. @property
  19. def ndim(self) -> int: ...
  20. @property
  21. def size(self) -> int: ...
  22. @property
  23. def nbytes(self) -> int: ...
  24. def copy(self): ...
  25. def delete(self, loc, axis=0): ...
  26. def swapaxes(self, axis1, axis2): ...
  27. def repeat(self, repeats: int | Sequence[int], axis: int | None = ...): ...
  28. def reshape(self, *args, **kwargs): ...
  29. def ravel(self, order="C"): ...
  30. @property
  31. def T(self): ...