Solved: How to update the data frame column values from another data frame based a conditional match in polars?

Question:

I have two data frames as below.
enter image description here
Another frame as,
enter image description here
Here I would like to update the last_name and first_name from df_names Dataframe whichever last and first names matched in dataframe- df_updates with last_name_x and first_name_x values.
here is an expected output as:
enter image description here

Best Answer:

If you have better answer, please add a comment about this, thank you!

Source: Stackoverflow.com