Skip to main content
Ctrl+K
PyFlink 1.20+vvr.11.7.dev0 documentation - Home PyFlink 1.20+vvr.11.7.dev0 documentation - Home
  • API Reference
  • Examples
  • API Reference
  • Examples

Section Navigation

  • PyFlink Table
  • PyFlink DataStream
  • PyFlink DataFrame
    • DataFrame
    • DataFrame Creation
    • Input/Output
    • SQL
    • DataType
    • User Defined Functions
    • Configuration
    • GPU Support
    • AI / LLM
  • PyFlink Common
  • API Reference
  • PyFlink DataFrame
  • DataFrame
  • pyflink.dataframe.dataframe.DataFrame.join

pyflink.dataframe.dataframe.DataFrame.join#

DataFrame.join(other: DataFrame, on: str | Expression | List[str] | None = None, how: str = 'inner', left_on: str | Expression | List[str] | None = None, right_on: str | Expression | List[str] | None = None) → DataFrame[source]#

Join with another DataFrame.

Parameters:
  • other – Right DataFrame to join.

  • on – Join key(s) when both DataFrames have the same column names.

  • how – Join type. One of “inner”, “left”, “right”, “full”, “outer”.

  • left_on – Left join key(s).

  • right_on – Right join key(s).

Returns:

A new DataFrame with the join result.

Example::
>>> df1.join(df2, on="id")
>>> df1.join(df2, left_on="id", right_on="user_id")
>>> df1.join(df2, on=["id", "name"], how="left")

previous

pyflink.dataframe.dataframe.DataFrame.agg

next

pyflink.dataframe.dataframe.DataFrame.map

On this page
  • DataFrame.join()

This Page

  • Show Source

Created using Sphinx 7.4.7.

Built with the PyData Sphinx Theme 0.16.1.