df.assign allows you to assign values to multiple new columns in one line of code.
df.assign
In the code above, I first created col3 then usecol3 to create col4 in one line of code.
col3
col4
DuckDB: Simplify DataFrame Analysis with Serverless SQL
Simplifying Dataset Comparison with Datacompy
Fuzzy Joining Tables with Non-Exact Matching Entries
Your email address will not be published. Required fields are marked *
Name
Email
Website
Save my name, email, and website in this browser for the next time I comment.
Δ