assigning values in each column to be the sum of that column,df = pd.DataFrame([df.sum()] * len(df))