Skip to content

Commit 8c43386

Browse files
committed
another solution
1 parent e9ea98e commit 8c43386

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Python3/2881-Create_A_New_Column.py

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import pandas as pd
2+
3+
def createBonusColumn(employees: pd.DataFrame) -> pd.DataFrame:
4+
employees['bonus'] = employees['salary'].multiply(2)
5+
return employees

0 commit comments

Comments
 (0)