write csv for dp summary