文章目录
安装pandas
Pandas是一个基于NumPy的Python数据分析库,可以从各种文件格式如CSV、JSON、SQL、Excel等导入数据,并支持多种数据运算操作,如归并、再成形、选择等。
- 更换pip源
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
- 安装Pandas
pip install pandas
写views
视图:
from django.shortcuts import render
from django.http import HttpResponse
from antproject.settings import BA