All Downloads are FREE. Search and download functionalities are using the official Maven repository.

g2801_2900.s2881_create_a_new_column.solution.py Maven / Gradle / Ivy

The newest version!
# #Easy #2023_12_23_Time_437_ms_(81.98%)_Space_60.3_MB_(37.80%)

import pandas as pd

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy