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