当前位置:网站首页>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中。
边栏推荐
- A senior test engineer asked me these questions as soon as the interview came
- 网站与服务器维护怎么做?
- 【面经】米哈游数据开发一面二面面经
- 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
- Redis简单学习笔记
- Double Strings (don't always forget substr)
- Redis笔记基础篇:6分钟看完Redis的八种数据类型
- MySQL常见的索引
- 3分钟带你了解微信小程序开发
- 2022.7.30 js笔记 运算符和流程控制符、循环
猜你喜欢
随机推荐
DAY-1 | 求两个正整数的最大公约数与最小公倍数之和——辗转相除法
Double Strings (don't always forget substr)
离线数仓-用户行为采集
基于可逆网络的单一图像超分辨率
2022.7.30 js笔记 运算符和流程控制符、循环
弹性盒子flex属性
线性代数学习笔记2-1:向量和向量组、线性相关性(张成空间的概念)
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
连接数据库时遇到的bug1号
bgp机房的动态路由和静态路由的区别
5.合宙Air32F103_LCD_key
Redis笔记基础篇:6分钟看完Redis的八种数据类型
MySQL分页查询的5种方法
构造方法、方法重载、全局变量与局部变量
二维数组实战项目--------《三子棋》
Monaco Editor 的基本用法
3分钟带你了解微信小程序开发
MySQL中JOIN的用法
源码构建LAMP环境-1
基于libmodbus库实现modbus TCP/RTU通信





![[详解C语言]一文带你玩转C语言小游戏---三子棋](/img/a7/1266ec8d1cc838a06fe4ff6810c0de.png)



![OD-Model [4]: SSD](/img/ad/4ffb3e56538aa38b03173d79d9d213.jpg)