解决报错问题
Crypto投资小白书
中国人民大学金融学学士 | 香港大学经济学硕士 | 前人大金融科技研究所研究员 | 专注于Web3,AI及个人提升 | 传播靠谱的区块链和量化知识 | 间歇分享职场能力提升内容及语言考试技巧
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Python库安装失败解决办法(以python3.8中Numpy安装失败为例)
在cmd命令提示符窗口调用 pip install numpy失败,解决办法如下:以管理员权限打开Windows命令提示符(快速方法:按Windows键。键入“ cmd”。右键单击建议的“命令提示符”,然后选择“以管理员身份运行”)使用“ cd”(更改目录)命令导航到Python安装目录的Scripts文件夹。例如“ cd C:\ Program Files(x86)\ PythonXX \ Scripts”输入以下命令:“ pip install numpy”Collecting numpy原创 2021-03-23 13:30:53 · 5193 阅读 · 1 评论 -
Pandas | TypeError: ufunc ‘add‘ did not contain a loop with signature matching types dtype(‘<U21‘)..
Pandas | 将dataframe中的series相加时,df.a+df.b没有问题,但是df.a+’,’+df.b时就报错,报错如下:TypeError: ufunc ‘add’ did not contain a loop with signature matching types dtype(’<U21’) dtype(’<U21’) dtype(’<U21’)问题如题如图:解决方法将a和b由int转化为str:df.a=df.a.astype(str)df.b=d原创 2021-02-22 22:11:46 · 10351 阅读 · 0 评论
分享