join.pyi 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. import numpy as np
  2. from pandas._typing import npt
  3. def inner_join(
  4. left: np.ndarray, # const intp_t[:]
  5. right: np.ndarray, # const intp_t[:]
  6. max_groups: int,
  7. sort: bool = ...,
  8. ) -> tuple[npt.NDArray[np.intp], npt.NDArray[np.intp]]: ...
  9. def left_outer_join(
  10. left: np.ndarray, # const intp_t[:]
  11. right: np.ndarray, # const intp_t[:]
  12. max_groups: int,
  13. sort: bool = ...,
  14. ) -> tuple[npt.NDArray[np.intp], npt.NDArray[np.intp]]: ...
  15. def full_outer_join(
  16. left: np.ndarray, # const intp_t[:]
  17. right: np.ndarray, # const intp_t[:]
  18. max_groups: int,
  19. ) -> tuple[npt.NDArray[np.intp], npt.NDArray[np.intp]]: ...
  20. def ffill_indexer(
  21. indexer: np.ndarray, # const intp_t[:]
  22. ) -> npt.NDArray[np.intp]: ...
  23. def left_join_indexer_unique(
  24. left: np.ndarray, # ndarray[join_t]
  25. right: np.ndarray, # ndarray[join_t]
  26. ) -> npt.NDArray[np.intp]: ...
  27. def left_join_indexer(
  28. left: np.ndarray, # ndarray[join_t]
  29. right: np.ndarray, # ndarray[join_t]
  30. ) -> tuple[
  31. np.ndarray, # np.ndarray[join_t]
  32. npt.NDArray[np.intp],
  33. npt.NDArray[np.intp],
  34. ]: ...
  35. def inner_join_indexer(
  36. left: np.ndarray, # ndarray[join_t]
  37. right: np.ndarray, # ndarray[join_t]
  38. ) -> tuple[
  39. np.ndarray, # np.ndarray[join_t]
  40. npt.NDArray[np.intp],
  41. npt.NDArray[np.intp],
  42. ]: ...
  43. def outer_join_indexer(
  44. left: np.ndarray, # ndarray[join_t]
  45. right: np.ndarray, # ndarray[join_t]
  46. ) -> tuple[
  47. np.ndarray, # np.ndarray[join_t]
  48. npt.NDArray[np.intp],
  49. npt.NDArray[np.intp],
  50. ]: ...
  51. def asof_join_backward_on_X_by_Y(
  52. left_values: np.ndarray, # ndarray[numeric_t]
  53. right_values: np.ndarray, # ndarray[numeric_t]
  54. left_by_values: np.ndarray, # const int64_t[:]
  55. right_by_values: np.ndarray, # const int64_t[:]
  56. allow_exact_matches: bool = ...,
  57. tolerance: np.number | float | None = ...,
  58. use_hashtable: bool = ...,
  59. ) -> tuple[npt.NDArray[np.intp], npt.NDArray[np.intp]]: ...
  60. def asof_join_forward_on_X_by_Y(
  61. left_values: np.ndarray, # ndarray[numeric_t]
  62. right_values: np.ndarray, # ndarray[numeric_t]
  63. left_by_values: np.ndarray, # const int64_t[:]
  64. right_by_values: np.ndarray, # const int64_t[:]
  65. allow_exact_matches: bool = ...,
  66. tolerance: np.number | float | None = ...,
  67. use_hashtable: bool = ...,
  68. ) -> tuple[npt.NDArray[np.intp], npt.NDArray[np.intp]]: ...
  69. def asof_join_nearest_on_X_by_Y(
  70. left_values: np.ndarray, # ndarray[numeric_t]
  71. right_values: np.ndarray, # ndarray[numeric_t]
  72. left_by_values: np.ndarray, # const int64_t[:]
  73. right_by_values: np.ndarray, # const int64_t[:]
  74. allow_exact_matches: bool = ...,
  75. tolerance: np.number | float | None = ...,
  76. use_hashtable: bool = ...,
  77. ) -> tuple[npt.NDArray[np.intp], npt.NDArray[np.intp]]: ...