Result Formats
There are serveral ways to get results from a DjangoQuery:
dataframe()
: returns a pandasDataFrame()
if pandas is installeddicts()
: returns a generator yielding a dict for each result rowtuples()
: returns a generator yielding a tuple for each result rowobjs()
: returns a generator that yields aDQResult
object which is basically a named tuplecsv()
: returns a string that represents the entire csv documentqs()
: returns Django model instances