Automate this Excel task using Python.
abc,1
def,2
ghi,3
jkl,4
import pandas as pd

# Read data
df = pd.read_csv("data.csv")

# Perform tasks
df['result'] = df['column2'] + df['column2']

# Write the result
df.to_csv("result.csv", index=False)