Laur's blog
  • Home
  • About
  • Support my work
Sign in Subscribe

model

A collection of 2 posts
Send JSON Graph Data from Django
django

Send JSON Graph Data from Django

I'm trying to write a Django application to deal with my finances. I've got a nice page listing various transactions, but I thought it'd be nice to have a graph too, to see where I actually am on the spot. To do this, I&
Feb 3, 2019 1 min read
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