Laur's blog
Sign in Subscribe

save

A collection of 1 post
Save Pandas DataFrame as Django Model
convert

Save Pandas DataFrame as Django Model

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
Aug 7, 2017 2 min read
Page 1 of 1
Laur's blog © 2025
  • Sign up
Powered by Ghost