@@ -897,3 +897,45 @@ def to_array_object(self, dtype: Any) -> Any:
897
897
understanding that consuming libraries would then use the
898
898
``array-api-compat`` package to convert it to a Standard-compliant array.
899
899
"""
900
+
901
+ def join (
902
+ self ,
903
+ other : DataFrame ,
904
+ * ,
905
+ how : Literal ['left' , 'inner' , 'outer' ],
906
+ on : str | list [str ] | None = None ,
907
+ left_on : str | list [str ] | None = None ,
908
+ right_on : str | list [str ] | None = None ,
909
+ ) -> DataFrame :
910
+ """
911
+ Join with other dataframe.
912
+
913
+ Parameters
914
+ ----------
915
+ other : DataFrame
916
+ Dataframe to join with.
917
+ how : str
918
+ Kind of join to perform.
919
+ Must be one of {'left', 'inner', 'outer'}.
920
+ on : str | list[str], optional
921
+ Key(s) to use to perform join.
922
+ Cannot be used in conjunction with `left_on` or `right_on`.
923
+ left_on : str | list[str], optional
924
+ Key(s) from `self` to perform `join` on.
925
+ If more than one key is given, it must be
926
+ the same length as `right_on`.
927
+ Cannot be used in conjunction with `on`.
928
+ right_on : str | list[str], optional
929
+ Key(s) from `other` to perform `join` on.
930
+ If more than one key is given, it must be
931
+ the same length as `left_on`.
932
+ Cannot be used in conjunction with `on`.
933
+
934
+ Returns
935
+ -------
936
+ DataFrame
937
+
938
+ Notes
939
+ -----
940
+ Either `on`, or both `left_on` and `right_on`, must be specified.
941
+ """
0 commit comments