当前位置:网站首页>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
边栏推荐
- What is the principle of spectral confocal displacement sensor? Which fields can be applied?
- MATLAB小技巧(22)矩阵分析--逐步回归
- Basic interview questions for Software Test Engineers (required for fresh students and test dishes) the most basic interview questions
- Two batches of pure milk are unqualified? Michael responded that he was conducting a large-scale screening and sampling inspection of products
- 图解使用Navicat for MySQL创建存储过程
- ECDSA signature verification in crypt
- Scratch drawing square electronic society graphical programming scratch grade examination level 2 true questions and answers analysis June 2022
- Visual Studio配置Qt并通过NSIS实现项目打包
- 【惊了】迅雷下载速度竟然比不上虚拟机中的下载速度
- Building a database model using power designer tools
猜你喜欢

21. Notes on WPF binding

【OpenGL】OpenGL Examples

问卷星问卷抓包分析

Today in history: Microsoft acquires PowerPoint developers; SGI and MIPS merge

Q-learning notes

What is the principle of spectral confocal displacement sensor? Which fields can be applied?

Visual Studio配置Qt并通过NSIS实现项目打包

Questionnaire star questionnaire packet capturing analysis

Pinda general permission system (day 7~day 8)

【目标跟踪】|pytracking 配置 win 编译prroi_pool.pyd
随机推荐
Redis installation on Linux system
时空预测2-GCN_LSTM
MySQL中变量的定义和变量的赋值使用
问卷星问卷抓包分析
How do different types of variables compare with zero
[surprised] the download speed of Xunlei is not as fast as that of the virtual machine
Redis cache problem
Linux系统Redis的安装
FFMpeg AVBufferPool 的理解与掌握
[MySQL] MySQL installation and configuration
SuperMap 3D SDKs_ Unity plug-in development - connect data services for SQL queries
SuperMap iClient3D 11i for Cesium三维场景中图例使用说明
ECDSA signature verification in crypt
STM32 移植 RT-Thread 标准版的 FinSH 组件
How to detect 3D line spectral confocal sensors in semiconductors
How to select an OLAP database engine?
Substrate 源码追新导读: 质押额度大幅度削减, RocksDB可以完全被Disable
Analysis of smart jiangcai login in Jiangxi University of Finance and Economics
Substrate 源码追新导读: 波卡系波卡权重计算全面更新, Governance 2.0 版本的优化和调整
【惊了】迅雷下载速度竟然比不上虚拟机中的下载速度