当前位置:网站首页>Solve numpy core._ exceptions. Ufunctypeerror: UFUNC 'Add' did not contain a loop with signature matching
Solve numpy core._ exceptions. Ufunctypeerror: UFUNC 'Add' did not contain a loop with signature matching
2022-06-30 12:45:00 【Full stack programmer webmaster】
Recently, we are testing the distribution project , Manually calculate the distributor's commission each time , It's very troublesome , So I want to use python To automatically calculate commissions , But there is a problem in the calculation , as follows :
Problem description
Pictured , When calculating and adding the Commission matrix , numpy Threw an exception , There is no relevant information about this anomaly on the Internet .
So I interrupted to have a look , It is found that when calculating , list Data in , The return is str type , When the matrix is added , The calculation failed .
Then I went to have a look at the code of commission calculation rules written by myself , If the commission amount in the demand is greater than two decimal places , The data will be rounded to two decimal places , But the data type with two decimal places becomes str Type , Then I change the data type to float, The problem will be solved ~ Pictured :
Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/100687.html Link to the original text :https://javaforall.cn
边栏推荐
- QT implementation dynamic navigation bar
- 海思3559萬能平臺搭建:獲取數據幀修改後編碼
- QT MSVC installation and commissioning
- Redis installation on Linux system
- Building of Hisilicon 3559 universal platform: obtaining the modified code of data frame
- SuperMap iclient3d for webgl loading TMS tiles
- Two batches of pure milk are unqualified? Michael responded that he was conducting a large-scale screening and sampling inspection of products
- Lichuang EDA learning notes 10 common connector component identification and passive buzzer driving circuit
- Substrate 源码追新导读: 质押额度大幅度削减, RocksDB可以完全被Disable
- SuperMap iServer11i新功能----图例的发布和使用
猜你喜欢

Wechat launched the picture big bang function; Apple's self-developed 5g chip may have failed; Microsoft solves the bug that causes edge to stop responding | geek headlines

60 divine vs Code plug-ins!!

Redis-缓存问题

Iserver publishing es service query setting maximum return quantity

Lichuang EDA learning notes 10 common connector component identification and passive buzzer driving circuit

After the market value evaporated by 65billion yuan, the "mask king" made steady medical treatment and focused on condoms

Hisilicon 3559 universal platform construction: introduction to YUV format

Qt读写Excel--QXlsx工作表显示/隐藏状态设置4

Pinda general permission system (day 7~day 8)

Some commonly used hardware information of the server (constantly updated)
随机推荐
60 divine vs Code plug-ins!!
Joplin implements style changes
Substrate 源码追新导读: 波卡系波卡权重计算全面更新, Governance 2.0 版本的优化和调整
Use of polarplot function in MATLAB
第十三章 信号(三)- 示例演示
Today in history: Microsoft acquires PowerPoint developers; SGI and MIPS merge
JMeter性能测试之相关术语及性能测试通过标准
Introduction to sub source code updating: mid May: uniques NFT module and nomination pool
Introduction to the novelty of substrat source code: indexing of call calls and fully completing the materialization of storage layer
Substrate 源码追新导读: Call调用索引化, 存储层事物化全面完成
Mysql中 begin..end使用遇到的坑
基于ThinkPHP5封装tronapi-波场接口-PHP版本--附接口文档-20220627
SQLSERVER 查询编码是 936 简体中文GBK,那我是写936 还是写GBK?
Grep match lookup
After the market value evaporated by 65billion yuan, the "mask king" made steady medical treatment and focused on condoms
Solve the problem that the server cannot be connected via SSH during reinstallation
Four ways for flinksql to customize udtf
Can the polardb MySQL fees for RDS MySQL data migration be transferred?
pyqt5界面的布局与资源文件的载入
Commands for redis basic operations