IniziaInizia gratis

How many rows with a left join?

Select the true statement about left joins.

Try running the following code statements:

  • left_table.merge(one_to_one, on='id', how='left').shape
  • left_table.merge(one_to_many, on='id', how='left').shape

Note that the left_table starts out with 4 rows.

Questo esercizio fa parte del corso

Joining Data with pandas

Visualizza il corso

Esercizio pratico interattivo

Passa dalla teoria alla pratica con uno dei nostri esercizi interattivi

Inizia esercizio