1import pandas as pd
2import datetime
3from myapp.models import BlogPost
4
5df = pd.DataFrame(list(BlogPost.objects.all().values()))
6df = pd.DataFrame(list(BlogPost.objects.filter(date__gte=datetime.datetime(2012, 5, 1)).values()))
7
8# limit which fields
9df = pd.DataFrame(list(BlogPost.objects.all().values('author', 'date', 'slug')))