Premium problem69. Concatenate Two String Columns

Easy Locked

Return a Series where each value is the corresponding first and last values joined together with an underscore between them (e.g. "Jane" and "Doe" become "Jane_Doe").

Input

  first   last
0  Jane    Doe
1  John  Smith

Output

0      Jane_Doe
1    John_Smith
Name: first, dtype: object

Premium problem

This one's part of Premium. Unlock the full Pandas track plus every other premium problem on the site.

Implement solve(...)