@@ -897,3 +897,44 @@ 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 : {'left', 'inner', 'outer'}
918
+ Kind of join to perform.
919
+ on : str | list[str], optional
920
+ Key(s) to use to perform join.
921
+ Cannot be used in conjunction with `left_on` or `right_on`.
922
+ left_on : str | list[str], optional
923
+ Key(s) from `self` to perform `join` on.
924
+ If more than one key is given, it must be
925
+ the same length as `right_on`.
926
+ Cannot be used in conjunction with `on`.
927
+ right_on : str | list[str], optional
928
+ Key(s) from `other` to perform `join` on.
929
+ If more than one key is given, it must be
930
+ the same length as `left_on`.
931
+ Cannot be used in conjunction with `on`.
932
+
933
+ Returns
934
+ -------
935
+ DataFrame
936
+
937
+ Notes
938
+ -----
939
+ Either `on`, or both `left_on` and `right_on`, must be specified.
940
+ """
0 commit comments