Skip to content

2881. Create a New Column 👍

1
2
3
4
5
6
import pandas as pd


def createBonusColumn(employees: pd.DataFrame) -> pd.DataFrame:
  employees['bonus'] = employees['salary'] * 2
  return employees