- 博客(13)
- 收藏
- 关注
原创 ValueError: Wrong number of items passed 2, placement implies 1
pandas error
2022-08-25 13:30:21 3742
原创 Task Scheduler 计划定时任务,修改时报错: One or more of the specified arguments are not valid
Task Scheduler 计划定时任务,修改时报错: One or more of the specified arguments are not valid
2022-07-26 16:49:17 762
原创 python 读取Excel,删除nan值
在读取时,加上keep_default_False,这样nan就会变成空字符串,方便删除INV_result_pd = read_csv(r'。。。\ALL_INV.csv',header=0,keep_default_na=False)
2022-03-03 10:44:07 2342
原创 A value is trying to be set on a copy of a slice from a DataFrame.
Dataframe 给某一列赋值或改变类型时,报错:Bdf1 = test[['A','b']]df1['c'] = xxxA value is trying to be set on a copy of a slice from a DataFrame.解决方法: 在给df1 赋值dataframe时,df1 = DataFrame (test[['A','b']])
2022-01-22 23:58:02 203
原创 CMD 运行python 程序 自动暂停的问题
CMD 在运行Python 程序时,偶尔会暂停,也不报错,按enter 可以继续。根本原因在于,在快速编辑模式下,无意点到文字会选中文字,自动进入标记模式,并暂停程序。解决方法:1. CMD 标题栏右键2. 取消快速编辑(取消后 无法复制CMD中的文字)...
2022-01-10 16:06:24 1822
原创 Python 多进程 concurrent.futures 的使用
1. 基本用法with concurrent.futures.ProcessPoolExecutor() as executor: results = executor.map(function, list) for result in results: print(result)通过map函数,将list中的每个元素,放到不同的进程中同时执行,返回结果存在于results中。note:1. 上面的用法必须写在mai
2022-01-09 15:42:04 976
原创 Python 对于文件路径中有双反斜杠的处理
例如文件的路径为:\\xafsdf\asdf\wefad\123.csv如果要读取该路径,可用如下方式:file_path = r"""\\xafsdf\asdf\wefad\123.csv"""用三个双引号以及转义符
2021-12-24 10:03:59 3241 1
原创 Windows安装python包出现PermissionError: [WinError 32] 另一个程序正在使用此文件,进程无法访问的问题解决方案
权限问题,使用管理员打开CMD,再pip install.
2021-11-26 08:56:51 2643 1
原创 Pyinstaller 打包完EXE报错:ImportError: DLL load failed while importing win32print: The specified module c
Code中包含 win32print模块, 在VScode中可以正常运行,打包为EXE后运行报错:ImportError: DLL load failed while importing win32print: The specified module could not be found.我的pyinstaller:4.0, pywin32:228解决:1. 将pywin32 模块 降级为225。 但是这种方法,vscode中代码不能正常跑,报跟上面同样得错误。2. 将pywin.
2021-11-18 10:11:57 1829
原创 Pyqt 利用pyinstaller打包(包含配置文件,图标等),解决打包慢,文件大的问题
1.将配置文件放在新建的文件夹 res内。2.修改代码内 配置文件的路径:#coding:utf-8import sysimport os#生成资源文件目录访问路径def resource_path(relative_path): if getattr(sys, 'frozen', False): #是否Bundle Resource base_path = sys._MEIPASS else: base_path = os.path.ab
2021-11-16 16:19:52 2296
原创 EasyOcr报错 --- [WinError 10054] An existing connection was forcibly closed by the remote host
使用EasOCR时报错如下:urllib.error.URLError: <urlopen error [WinError 10054] An existing connection was forcibly closed by the remote host>原因:网络代理的问题。解决办法: 手动下载模型,即可解决。1. 下载所需的modle Jaided AI: EasyOCR model hub2. 把modle 放到 本地 C:\Users\用户名\.Eas...
2021-09-27 10:24:52 1631
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人