Replace the given SQL query with a Python program to calculate the sum of all the column values.
SELECT SUM(column) FROM table;
import pandas as pd

data = pd.read_sql

  query = "SELECT * FROM table"

df = pd.read_sql(query, conn)

sum_column = df['column'].sum()

print(sum_column)