Skip to content

DOC: SQL-style join conditions #57722

@jxu

Description

@jxu

Pandas version checks

  • I have checked that the issue still exists on the latest versions of the docs on main here

Location of the documentation

https://pandas.pydata.org/docs/getting_started/comparison/comparison_with_sql.html

Documentation problem

Not described how to do more complicated SQL-like joins on conditions, such as

SELECT *
FROM A
LEFT JOIN B
  ON A.key = B.key AND A.a >= B.b 

Suggested fix for documentation

Something from https://stackoverflow.com/questions/23508351/how-to-do-workaround-a-conditional-join-in-python-pandas

This is a common operation and a canonical answer is useful

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions