当前位置:网站首页>np. astype()
np. astype()
2022-06-29 10:52:00 【Full stack programmer webmaster】
Hello everyone , I meet you again , I'm your friend, Quan Jun .
1. effect : It's conversion numpy Data type of array
for instance
arr = np.arange((10))
print(arr, arr.dtype, sep="\n")
===================================
[0 1 2 3 4 5 6 7 8 9]
int32 # You can see , His data type is int32np.astype()
arr = arr.astype("float32")
print(arr, arr.dtype, sep="\n")
===================================
[0. 1. 2. 3. 4. 5. 6. 7. 8. 9.]
float32 # You can see that the data type is converted to float32usage :arr.astype(“ Specific data types ”)
Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/132453.html Link to the original text :https://javaforall.cn
边栏推荐
- js post下载文件
- Report card of regional industrial Internet market, the second place of Baidu intelligent yunkaiwu
- stream流(Collectors)用法
- &和&&的区别
- Exemples de programmation stm32f1 et stm32cubeide - entraînement du capteur de portée ultrasonique
- 小米手机-解BL锁+开ROOT权限
- 罗清启:高端家电已成红海?卡萨帝率先破局
- # 【OpenCV 例程200篇】214. 绘制椭圆的参数详解
- 由ASP.NET Core根据路径下载文件异常引发的探究
- What happened during the MySQL installation?
猜你喜欢

Reading notes of CLR via C -clr boarding and AppDomain

Bug的描述、定级、生命周期

Free books! The best-selling book "Introduction and practice of OpenCV image processing" has been completed

WinForm uses zxing to generate QR code

SQL Server 数据库的连接查询

STM32F1与STM32CubeIDE编程实例-超声波测距传感器驱动

SQL Server 数据库的几种简单查询

由ASP.NET Core根据路径下载文件异常引发的探究

Analysis of BlockingQueue source code of AQS

The product strength is not inferior to that of BYD. Geely Dihao l Raytheon hi · x delivered 10000 units in the first month
随机推荐
这个mySQL安装的时候怎么搞去了?
Bug description, rating and life cycle
The encryption market has exploded one after another. Can Celsius avoid bankruptcy?
Graphics learned from jigsaw puzzles h
Fully understand the volatile keyword
SQL Server 数据库的几种简单查询
Learn spark computing framework in practice (01)
The use and difference of watch listening and computed calculation attributes
SQL Server 数据库的连接查询
容器平台性能如何测试,稳定性、扩展效率、组件性能
宁德时代麒麟电池有着更大的野心
企业竞争分析的几种方法:SWOT、波特五力、PEST「建议收藏」
How to quickly complete disk partitioning
BUUCTF--reverse1
Software test model (V model and W model)
The difference between & & and &
ssh密钥泄露(B模块赛题)——应用服务漏洞扫描与利用
Cs231n-2022 module1: overview of key points of neural network (2)
请问,flink sql 批任务,两表或多表join(inner join 或 outer join
【C语言进阶】通讯录实现