Replace Rows In Dataframe Python Add Column To Matrix