I want to create a pandas DataFrame from a query_set.QuerySet object but when I go for:
df = pd.DataFrame.from_dict(res)
res being the query set, I get the following error:
TypeError: Object of type DataFrame is not JSON serializable.
What can I do to fix it? Thanks in advance!