2884. Modify Columns

Updated: 2024-03-12
1 min read
[]

On This Page

LeetCode problem 2884

import pandas as pd


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