I have 4 dataframes to which I apply inner join and left joins .
I am trying to rewrite the query in python.How can we do all the joins together at a time in pandas code.
SQL
select hd.order_no,hd.order_id,hd.ship_country,User.LT_ID,User.DEST_REGION,Auto.m0_act_0400,Auto.m0_act_0500
FROM
header hd
INNER JOIN key ky ON (hd.order_no = ky.order_no)
LEFT JOIN User lt on (ky.lt_id = lt.lt_id)
LEFT JOIN Auto a on (hd.order_id = a.order_id )
*
How can this be done in pandas easily.