Skip to content

Content Tagged "save"

Page 1 of 1

Content Tagged "save"

Save Pandas DataFrame as Django Model

August 7, 2017Categories: Software, Tutorial
TL;DR: use bulk_upload coupled with a comprehension to speed up loading. Initially, I started to convert the data frame to a Model object row by row and save it. While easy, it's also arguably the slowest method to load records, because the save() call performs a commit . Then I looked up…

All tags