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

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy