当前位置:网站首页>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
边栏推荐
猜你喜欢

How to detect 3D line spectral confocal sensors in semiconductors

How to use AI technology to optimize the independent station customer service system? Listen to the experts!

60 个神级 VS Code 插件!!

Shell编程概述

Inner join and outer join of MySQL tables

Flinksql customizes udatf to implement topn

NoSQL - redis configuration and optimization

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

SuperMap 3D SDKs_Unity插件开发——连接数据服务进行SQL查询

How to use the plug-in mechanism to gracefully encapsulate your request hook
随机推荐
What are the applications of 3D visual inspection in production flow
QT MSVC installation and commissioning
【OpenGL】OpenGL Examples
Dqn notes
SQLSERVER 查询编码是 936 简体中文GBK,那我是写936 还是写GBK?
Redis的配置文件及新数据类型
Grep match lookup
黑马笔记---集合(Collection的常用方法与遍历方式)
SuperMap iDesktop 常见倾斜数据处理全流程解析
Browser plays RTSP video based on nodejs
Scratch drawing square electronic society graphical programming scratch grade examination level 2 true questions and answers analysis June 2022
FlinkSQL自定义UDATF实现TopN
LeetCode_栈_中等_227.基本计算器 II(不含括号)
SuperMap 3D SDKs_ Unity plug-in development - connect data services for SQL queries
Flink sql控制台,不识别group_concat函数吗?
Hisilicon 3559 sample parsing: Venc
Clipboardjs - development learning summary 1
SuperMap iclient3d for webgl loading TMS tiles
Reading the table data of Tencent documents in the applet
Building a database model using power designer tools