我已经使用django-pandas
将我的queryset转换为应用程序中的数据帧:
from django_pandas.io import read_frame
qs = Entry.objects.filter(
date__range=(start_date, end_date),
).select_related(
'user', 'project'
)
df = read_frame(
qs,
fieldnames=[
'id', 'date', 'user', 'user__id', 'project__name',
'project_id'
]
)
我正在决定是将order_by
添加到查询中,还是添加到带有pandas的^{
我正在查询的表中有64k条记录。在
在测试时间后,我得到:
相关问题 更多 >
编程相关推荐