3067. Modify Columns
My accepted Python solution to LeetCode problem 3067, Modify Columns, running in 336ms.
- Difficulty: Easy
- Python
- Runtime 336ms
- Memory 66.6MB
- Updated
Read the problem on LeetCode View on GitHub
The problem statement is LeetCode’s and stays on their site. What follows is my accepted solution.
Python
Accepted on LeetCode — runtime 336ms, memory 66.6MB, accepted 2026-01-02.
import pandas as pd
def modifySalaryColumn(employees: pd.DataFrame) -> pd.DataFrame:
employees['salary'] = employees['salary'] * 2
return employees