![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
文章平均质量分 50
Sophie'sCookingLab
个人学习笔记,方便使用时查找,也希望和各位大佬交流学习心得~~
原理+实践+认知
展开
-
python dataframe转csv时,报错 _csv.Error: need to escape, but no escapechar set
When converting a pandas DataFrame to a CSV file and encountering the error, it’s usually because some characters in your data need to be escaped, and the parameter has not been set in the method.To resolve this issue, you can set the parameter in the原创 2024-07-11 16:41:29 · 471 阅读 · 0 评论 -
PyMuPDF
pip uninstall pymupdfpip install pymupdf=1.24.2原创 2024-07-11 15:48:27 · 203 阅读 · 0 评论 -
pandas报错
/Users/sunwenjun/anaconda3/envs/python310/lib/python3.10/site-packages/streamlit/type_util.py:1080: UserWarning: The DataFrame has column names of mixed type. They will be converted to strings and not roundtrip correctly.table = pa.Table.from_pandas(df)原创 2024-07-10 12:17:27 · 89 阅读 · 0 评论 -
streamlit table转置显示
streamlit table转置显示,并且原始的表头放在最左侧。原创 2024-07-09 11:42:35 · 257 阅读 · 0 评论 -
tabula安装
【代码】tabula安装。原创 2024-07-09 11:41:07 · 451 阅读 · 0 评论 -
tabula安装
【代码】tabula安装。原创 2024-07-08 23:23:02 · 941 阅读 · 0 评论 -
python中的json库常见使用总结
使用 json.dumps() 生成 JSON 字符串时,需要确保 Python 对象中的所有数据都可以被正确地序列化为 JSON 数据类型,否则会抛出 TypeError 异常。接受一个包含JSON数据的字符串作为参数,从字符串中加载JSON数据。将 Python 对象转换为 JSON 字符串,并将该字符串写入文件。将 Python 对象转换为 JSON 字符串,并返回该字符串。接受一个已经打开的文件对象作为参数,从文件中读取JSON数据。异常,如果提供的字符串不是有效的JSON格式。原创 2024-07-02 18:17:34 · 470 阅读 · 0 评论 -
django网站前端开发-上传文件
通过以上步骤,您已经在 Django 项目中创建了一个允许用户上传 PDF 文档的功能。用户可以通过点击上传按钮选择文件,并将文件上传到服务器。上传的文件将保存在指定的目录中。django在做网站前端开发时,在网页上嵌入一个上传pdf文档的按钮,点击该按钮,弹出选择文件。原创 2024-06-20 22:33:18 · 990 阅读 · 0 评论 -
使用小顶堆找出有序矩阵中第 K 小的元素
【代码】使用小顶堆找出有序矩阵中第 K 小的元素。原创 2024-05-20 10:40:42 · 235 阅读 · 0 评论 -
Jupyter Notebook魔术命令
【代码】Jupyter Notebook魔术命令。原创 2024-05-03 16:23:11 · 449 阅读 · 2 评论 -
python内置函数之 enumerate()
python内置函数enumerate用法原创 2024-04-02 10:21:34 · 179 阅读 · 1 评论