g2801_2900.s2881_create_a_new_column.solution.py Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of leetcode-in-java Show documentation
Show all versions of leetcode-in-java Show documentation
Java-based LeetCode algorithm problem solutions, regularly updated
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