当前位置:网站首页>np.isnan()
np.isnan()
2022-08-02 03:21:00 【woshicaiji12138】
import numpy as np
s = data[:, 2]
nan = [i for i in range(len(s)) if np.isnan(s[i])]
np.isnan(x)函数可以判断x是否为空值,然后输出布尔类型的变量、
那么该处np.nan()作用即是将data数据的第三列中不为空值的数据依次存放到nan中。
边栏推荐
猜你喜欢
随机推荐
Daily practice------There are n integers, so that the previous numbers are moved back m positions in order, and the last m numbers become the first m numbers
SSM整合
TRICK second bullet
@DateTimeFormat注解
5.nodejs--跨域、CORS、JSONP 、Proxy
OD-Model [4]: SSD
@Autowired与@Resource区别
「PHP基础知识」PHP中对象的使用
HCIP-第十天-BGP综合实验
数据库操作作业
脚手架安装
DOM破坏及复现实验
删库后!除了跑路还能干什么?
2022.7.30 js notes Operators and flow controllers, loops
CV-Model [4]: MobileNet v3
HCIP第十一天_MPLS实验
动态代理工具类
CV-Model【4】:MobileNet v3
网站与服务器维护怎么做?
每日练习------有n个整数,使其前面各数顺序向后移m个位置,最后m个数变成最前面的m个数