1. Uczyć się
  2. /
  3. Courses
  4. /
  5. Data Transformation with Polars

Connected

Exercise

Preserving all listings

Sometimes reference data is incomplete, but you still need every listing for reporting. You want to keep all rows from hotels even when there's no matching benchmark - missing values should appear as null.

polars is loaded as pl, and the DataFrames hotels and type_benchmarks are available for you.

Instrukcje

100 XP
  • Join hotels with type_benchmarks on type and beach, keeping all rows from hotels.
  • Print a few rows to see the result.