05 2020 档案

摘要:平时我们在源代码中使用pandas的方法pd.read_excel,没有在代码中引入xlrd同样可以调试,但是在编译后就不行,这是因为Pandas 读取 Excel 文件的引擎是 xlrd,所以必须引入。 阅读全文
posted @ 2020-05-17 18:33 岁月饶过谁 阅读(252) 评论(0) 推荐(0)
摘要:例子1:精确指定条件 df_mots[(df_mots['time'] < 25320)&(df_mots['time'] >= 25270)] 例子2:模糊条件,包含指定字符串(包含变量) df = df[df['director'].notnull()] # 筛选非空数据 .str.contai 阅读全文
posted @ 2020-05-16 16:01 岁月饶过谁 阅读(27604) 评论(0) 推荐(1)
摘要:pyinstaller打包运行报错failed to execute script main pyqt5写完win32 应用程序后,经过pyinstaller打包成单个文件,运行弹出错误提示框:failed to execute script mainpycharm中pyinstaller打包参数: 阅读全文
posted @ 2020-05-10 23:44 岁月饶过谁 阅读(571) 评论(0) 推荐(0)
摘要:由于 Python 服务器在国外,因此使用 pip 安装第三方模块或者库的时候,下载速度特别慢,经常出现如下报错: $ socket.timeout: The read operation timed out 为提升下载速度,可以使用国内镜像下载,常用的国内镜像有: 豆瓣 https://pypi. 阅读全文
posted @ 2020-05-10 10:55 岁月饶过谁 阅读(860) 评论(0) 推荐(0)