SectionΒ 2. ChapterΒ 4
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
Nameas the joining key via the on parameter, and sethow="left". -
Return the joined Polars DataFrame containing the combined attributes.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 2. ChapterΒ 4
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat