Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Challenge: Merging Data | Combining, Aggregating
Data Wrangling with Polars
SectionΒ 2. ChapterΒ 4
single

single

Challenge: Merging Data

Swipe to show menu

Task

Swipe to start coding

Implement the function merge_marketing_insights(df: pl.DataFrame, insights_df: pl.DataFrame) -> pl.DataFrame.

  • Perform a left join by calling the .join() method on the primary df.

  • Pass insights_df as the target table, specify Name as the joining key via the on parameter, and set how="left".

  • Return the joined Polars DataFrame containing the combined attributes.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 2. ChapterΒ 4
single

single

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

some-alt