当前位置:网站首页>np.isnan ()
np.isnan ()
2022-08-02 03:34:00 【woshicaiji12138】
import numpy as nps = data[:, 2]nan = [i for i in range(len(s)) if np.isnan(s[i])]
The np.isnan(x) function can determine whether x is a null value, and then output a boolean type variable.
Then the function of np.nan() here is to make the third column of the data data not nullThe data of the value is stored in nan in turn.
边栏推荐
- Keil开发环境安装教程
- (Repost) HashCode Summary (1)
- 磷脂-聚乙二醇-酰肼,DSPE-PEG-Hydrazide,DSPE-PEG-HZ,MW:5000
- IndexError: only integers, slices (`:`), ellipsis (`...`), numpy.newaxis (`None`) and integer or boo
- 基本运算符
- HCIP第十一天_MPLS实验
- Error: with open(txt_path,'r') as f: FileNotFoundError: [Errno 2] No such file or directory:
- LeetCode:第304场周赛【总结】
- 云服务器安装部署Nacos2.0.4版本
- 动态代理工具类
猜你喜欢
磷脂-聚乙二醇-酰肼,DSPE-PEG-Hydrazide,DSPE-PEG-HZ,MW:5000
「PHP基础知识」PHP中对象的使用
知识工程作业2:知识工程相关领域介绍
subprocess.CalledProcessError: Command ‘pip install ‘thop‘‘ returned non-zero exit status 1.
(Reposted) The relationship between hashcode and equals
[email protected]在static属性上的使用"/>
@Autowired详解[email protected]在static属性上的使用
【程序人生】做了多年的运维,靠什么转行拿下12K+年终奖的薪资?
DOM destruction and reproduction experiment
LeetCode:1161. 最大层内元素和【BFS层序遍历】
磷脂-聚乙二醇-靶向新生血管靶向肽APRPG,DSPE-PEG-APRPG
随机推荐
OD-Model [4]: SSD
删库后!除了跑路还能干什么?
mysql8.0安装教程与配置(最详细)操作简单
黑马案例--实现 clock 时钟的web服务器
DOM destruction and reproduction experiment
JSP WebSehll backdoor script
HCIP-第十天-BGP综合实验
[详解C语言]一文带你玩转C语言小游戏---三子棋
SSM整合
DSPE-PEG-PDP,DSPE-PEG-OPSS,磷脂-聚乙二醇-巯基吡啶供应,MW:5000
cross-domain problem solving
「PHP基础知识」空值(null)的使用
LeetCode:1374. 生成每种字符都是奇数个的字符串【签到题】
bgp机房的动态路由和静态路由的区别
MySQL两阶段提交串讲
5.nodejs--cross domain, CORS, JSONP, Proxy
MySQL8.0安装教程,在Linux环境安装MySQL8.0教程,最新教程 超详细
MySQL8.0与MySQL5.7差异分析
@ApiModel 和 @ApiModelProperty
[Basic Tutorial of Remote Control Development 1] Crazy Shell Open Source Formation Drone-GPIO (Remote Control Indicator Light Control)