什么样的人容易中风| 田七煲汤配什么材料| 抑郁症什么意思| 葛根粉吃了有什么作用| 同房有什么好处| 备孕需要做些什么准备| 一直倒霉预示着什么| 孜字五行属什么| 看甲状腺去医院挂什么科| 肺结核什么症状| 年年有今日岁岁有今朝什么意思| 目加一笔是什么字| 反洗钱是什么意思| 双子座什么性格| aids是什么意思| 抗核抗体阳性是什么意思| 暮春是什么意思| 耳浴10分钟什么意思| 肋骨外翻是什么原因| 什么面料不容易皱| 扁平疣用什么药膏管用| 紫薇花什么季节开花| 入睡困难挂什么科| 按摩椅什么牌子最好| 吃什么东西涨奶最快| 什么人不能吃蚕豆| 蚂蚱吃什么食物| 你的美丽让你带走是什么歌| 吃山楂片有什么好处| 胃不舒服吃什么食物好| 肿瘤长什么样| 朋友圈为什么发不出去| 11月14日什么星座| 大腿粗是什么原因导致的| 男字五行属什么| dolphin是什么意思| 女生长胡子是什么原因| 神经衰弱是什么病| 土龙是什么鱼| 潦倒是什么意思| 梦见牙齿掉了什么意思| 不丹为什么不和中国建交| 机电一体化学什么| 什么水果可以泡酒| 口疮吃什么药| 抽电子烟有什么危害| 什么什么的眼睛| 心悸心慌焦虑吃什么药能缓解| 坐骨神经痛是什么原因引起的| 女人送男人打火机代表什么| 红红的太阳像什么| 恢弘是什么意思| 怀孕吃什么菜最有营养| 喝苏打水有什么好处和坏处| 24小时动态脑电图能查出什么| 吃什么补性功能最快| 仙人跳是什么意思| 五味指的是什么| 尿蛋白高是什么意思| 面基是什么意思| 黍是什么意思| 小三阳吃什么食物好得快| 苑什么意思| 安全期一般是什么时候| 胡子发黄是什么原因| 热惊厥病发是什么症状| 为什么会得阑尾炎| 盐酸二甲双胍缓释片什么时候吃| 女生腋毛多是什么原因| 公务员国考和省考有什么区别| 6月12日是什么日子| 俄罗斯信奉什么教| 不偏不倚是什么意思| 西瓜对人体有什么好处| 肺气泡是什么病| 血小板压积偏高是什么意思| 相什么成趣| 吃姜对身体有什么好处| 淋巴细胞偏低是什么意思| 什么时候秋天| 农字五行属什么| 梦见发大水是什么征兆| 香精是什么东西| 男人做梦梦到蛇是什么意思| 7大营养素是什么| 脚冰冰凉是什么原因| 神经递质是什么意思| 人到中年为什么会发胖| 7点到9点是什么时辰| 穿刺是检查什么的| 正事是什么意思| 印堂发黑是什么征兆| 杨梅酒喝了有什么好处和功效| 经常喝红茶有什么好处和坏处吗| 头疼是什么原因导致的| 减肥什么东西不能吃| 股票五行属什么| 落户什么意思| 清炖排骨都放什么调料| 膺是什么意思| 补气固表什么意思| 吃什么药可以流产| 后位子宫什么意思| 前庭是什么意思| afp检查是什么意思| 开塞露是干什么用的| 黄金分割点是什么| 反复发烧吃什么药| 风林火山是什么意思| 什么的饭菜| 晚饭吃什么英语怎么说| 焦虑症挂什么科| 单恋是什么意思| 血压是什么意思| 地贫是什么| 牙痛安又叫什么| 高尿酸有什么症状| 什么动物菩萨心肠| bg什么意思| 肛周脓肿用什么药| 什么是官方旗舰店| 孕妇吃什么补钙| h代表什么意思| 安乐死是什么意思| 情是什么意思| 什么赴什么继| 看病人送什么花合适| 心猿意马是什么意思| 两点水的字和什么有关| 猩红热是什么| 胡萝卜炒什么好吃| 孙俪最新电视剧叫什么| 红斑狼疮是什么病| 血钾低会有什么症状| 前列腺炎是什么引起的| 金主是什么意思| 茜色是什么颜色| 拔萝卜什么意思| 爱无能是什么意思| 乳腺炎吃什么药好| mg是什么单位| 绝经三年了突然又出血了什么原因| 快乐是什么意思| 小腿浮肿是什么原因引起的| 梦见生女孩是什么征兆| 大便糊状什么原因| 泰迪哼哼唧唧表示什么| 阿胶什么时候吃效果最好| 角膜炎吃什么消炎药| 怀孕要检查什么项目| 吃什么水果补肾| 哇噻是什么意思| 什么样的马| 小孩口臭吃什么药效果最好| 胆摘除对身体有什么影响| 三点水加亘念什么| 打嗝是什么意思| 3月28日是什么星座| 心梗挂什么科| 有恙是什么意思| ariel是什么意思| 08属什么生肖| ufc什么意思| 手足口病是什么病毒| 吃红薯有什么好处| 脑炎是什么原因引起的| 舒肝健胃丸治什么病| 静脉血栓是什么症状| 你有什么| 奖励是什么意思| 胃窦充血水肿意味着什么| 公开遴选公务员是什么意思| louisvuitton什么牌子| 清欢渡是什么意思| 夏天猪骨煲什么汤最好| 宫颈炎吃什么药| 一什么大风| 心如所愿的意思是什么| nub是什么意思| 黄痰是什么原因造成的| 嘴唇发乌是什么原因| 什么情况下会得甲亢| 分泌物呈褐色是什么原因| 阿赖耶识是什么意思| 语什么心什么| 投诉护士找什么部门| 荞头是什么| 猪八戒的武器叫什么| 毅五行属什么| 白参是什么参| 23岁属什么生肖| 纣王叫什么名字| 肚脐眼中间疼是什么原因| sg比重是什么意思| 释然什么意思| 大条是什么意思| 第四个手指叫什么| 黄瓜与什么食物相克| 胃酸过多吃什么好| dpm是什么意思| 吃什么能补血| 梦见被蛇缠身是什么意思| 这什么情况| 非洲有什么动物| 尿素氮高什么原因| 婴儿眉毛上黄痂是什么| 轴向是什么意思| 榴莲有什么功效| 感觉牙齿松动是什么原因| 胎囊是什么| 逆时针是什么方向| 蓝精灵是什么药| 为什么明星不激光祛斑| 平板支撑是什么| 烧心胃酸吃什么药| 阿莫西林不能和什么药一起吃| 狗为什么怕猫| 谷氨酰转肽酶偏高是什么意思| 天灾人祸什么意思| 李逵代表什么生肖| 骗婚是什么意思| 什么的月亮| 中国精神是指什么| 连续做噩梦是什么原因| 前壁后壁有什么区别| 岁寒三友是指什么| 右肺中叶少许纤维灶是什么意思| 珍珠粉加蜂蜜做面膜有什么作用| 大败毒胶囊主治什么病| 睡不着吃什么药最有效| 重楼的别名叫什么| 含五行属什么| 身体虚弱打什么营养针| cob是什么意思| 讨扰是什么意思| 什么是微量元素| 1990属马的是什么命| 抵触是什么意思| 咖啡色是什么颜色| 无花果是什么季节的水果| 阑尾是干什么用的| 吃什么可以止咳化痰| absorb什么意思| 希望孩子成为什么样的人| 为什么会呼吸性碱中毒| 白化病是什么| 肝脏低密度灶什么意思| 苹果手机为什么那么贵| 什么颜色招财并聚财| 血小板分布宽度偏高是什么意思| 什么叫统招生| 抿嘴是什么意思| 激素六项是查什么的| lanvin是什么牌子| 红加黄是什么颜色| azul是什么颜色| 指压是什么意思| 螃蟹吃什么食物| 四维什么时候做| 鸡蛋粘壳是什么原因| 心里紧张吃什么药缓解| 口诀是什么意思| 过年为什么要吃饺子| 彩超跟b超有什么区别| 百度
NumPy
The fundamental package for scientific computing with Python
NumPy 2.3.0 released!
2025-08-07
Powerful N-dimensional arrays
Fast and versatile, the NumPy vectorization, indexing, and broadcasting concepts are the de-facto standards of array computing today.
Numerical computing tools
NumPy offers comprehensive mathematical functions, random number generators, linear algebra routines, Fourier transforms, and more.
Open source
Distributed under a liberal BSD license, NumPy is developed and maintained publicly on GitHub by a vibrant, responsive, and diverse community.
Interoperable
NumPy supports a wide range of hardware and computing platforms, and plays well with distributed, GPU, and sparse array libraries.
Performant
The core of NumPy is well-optimized C code. Enjoy the flexibility of Python with the speed of compiled code.
Easy to use
NumPy’s high level syntax makes it accessible and productive for programmers from any background or experience level.
Try NumPy

Use the interactive shell to try NumPy in the browser

"""
To try the examples in the browser:
1. Type code in the input cell and press
   Shift + Enter to execute
2. Or copy paste the code, and click on
   the "Run" button in the toolbar
"""

# The standard way to import NumPy:
import numpy as np

# Create a 2-D array, set every second element in
# some rows and find max per row:

x = np.arange(15, dtype=np.int64).reshape(3, 5)
x[1:, ::2] = -99
x
# array([[  0,   1,   2,   3,   4],
#        [-99,   6, -99,   8, -99],
#        [-99,  11, -99,  13, -99]])

x.max(axis=1)
# array([ 4,  8, 13])

# Generate normally distributed random numbers:
rng = np.random.default_rng()
samples = rng.normal(size=2500)
samples

ECOSYSTEM

Nearly every scientist working in Python draws on the power of NumPy.

NumPy brings the computational power of languages like C and Fortran to Python, a language much easier to learn and use. With this power comes simplicity: a solution in NumPy is often clear and elegant.

NumPy's API is the starting point when libraries are written to exploit innovative hardware, create specialized array types, or add capabilities beyond what NumPy provides.

Array LibraryCapabilities & Application areas
DaskDaskDistributed arrays and advanced parallelism for analytics, enabling performance at scale.
CuPyCuPyNumPy-compatible array library for GPU-accelerated computing with Python.
JAXJAXComposable transformations of NumPy programs: differentiate, vectorize, just-in-time compilation to GPU/TPU.
xarrayXarrayLabeled, indexed multi-dimensional arrays for advanced analytics and visualization.
sparseSparseNumPy-compatible sparse array library that integrates with Dask and SciPy's sparse linear algebra.
PyTorchPyTorchDeep learning framework that accelerates the path from research prototyping to production deployment.
TensorFlowTensorFlowAn end-to-end platform for machine learning to easily build and deploy ML powered applications.
arrowArrowA cross-language development platform for columnar in-memory data and analytics.
xtensorxtensorMulti-dimensional arrays with broadcasting and lazy computing for numerical analysis.
awkwardAwkward ArrayManipulate JSON-like data with NumPy-like idioms.
uarrayuarrayPython backend system that decouples API from implementation; unumpy provides a NumPy API.
tensorlytensorlyTensor learning, algebra and backends to seamlessly use NumPy, PyTorch, TensorFlow or CuPy.
Diagram of Python Libraries. The five catagories are 'Extract, Transform, Load', 'Data Exploration', 'Data Modeling', 'Data Evaluation' and 'Data Presentation'.

NumPy lies at the core of a rich ecosystem of data science libraries. A typical exploratory data science workflow might look like:

For high data volumes, Dask and Ray are designed to scale. Stable deployments rely on data versioning (DVC), experiment tracking (MLFlow), and workflow automation (Airflow, Dagster and Prefect).

Diagram of three overlapping circles. The circles are labeled 'Mathematics', 'Computer Science' and 'Domain Expertise'. In the middle of the diagram, which has the three circles overlapping it, is an area labeled 'Data Science'.

NumPy forms the basis of powerful machine learning libraries like scikit-learn and SciPy. As machine learning grows, so does the list of libraries built on NumPy. TensorFlow’s deep learning capabilities have broad applications — among them speech and image recognition, text-based applications, time-series analysis, and video detection. PyTorch, another deep learning library, is popular among researchers in computer vision and natural language processing.

Statistical techniques called ensemble methods such as binning, bagging, stacking, and boosting are among the ML algorithms implemented by tools such as XGBoost, LightGBM, and CatBoost — one of the fastest inference engines. Yellowbrick and Eli5 offer machine learning visualizations.

A streamplot made in matplotlib
A scatter-plot graph made in ggpy
A box-plot made in plotly
A streamgraph made in altair
A pairplot of two types of graph, a plot-graph and a frequency graph made in seaborn"
A 3D volume rendering made in PyVista.
A multi-dimensionan image made in napari.
A Voronoi diagram made in vispy.

NumPy is an essential component in the burgeoning Python visualization landscape, which includes Matplotlib, Seaborn, Plotly, Altair, Bokeh, Holoviz, Vispy, Napari, and PyVista, to name a few.

NumPy’s accelerated processing of large arrays allows researchers to visualize datasets far larger than native Python could handle.

CASE STUDIES

bpd是什么 什么情况下需要做造影 王字旁的字有什么 什么是婚姻 玄乎是什么意思
慢性胃炎吃什么中成药 紫苏叶是什么 臀推是什么意思 宋美龄为什么没有孩子 进击的巨人真相是什么
白细胞低是什么原因造成的 超导体是什么 月经提前十天是什么原因 胃火旺吃什么好 牙膏洗脸有什么好处和坏处
爱拍马屁的动物是什么生肖 乳头内陷挂什么科 慢性浅表性胃炎是什么意思 肚子大是什么原因 手麻木是什么引起的
硅油是什么jingluanji.com 喝什么饮料解酒最快zhiyanzhang.com 陀螺是什么意思hcv9jop6ns2r.cn 大生化是检查什么hcv8jop3ns7r.cn 生气伤什么器官hcv8jop6ns9r.cn
缺钾吃什么食物hcv7jop6ns2r.cn 拉肚子吃什么药管用hcv8jop2ns2r.cn 水痘能吃什么hcv8jop3ns1r.cn 孕妇做无创是检查什么hcv9jop3ns4r.cn 脚底痛什么原因hlguo.com
枕头底下放剪刀有什么说法hcv8jop6ns2r.cn 桑黄有什么药用价值hcv7jop9ns9r.cn 月牙消失了是什么原因hcv9jop1ns5r.cn 前胸疼是什么原因bysq.com 开斋节是什么意思hcv9jop3ns0r.cn
宫寒是什么原因引起的如何调理hcv7jop5ns1r.cn 舌根白苔厚是什么原因hcv7jop5ns2r.cn 孕妇喝什么牛奶对胎儿好jasonfriends.com 什么无什么事hcv9jop4ns4r.cn 哼哈二将是什么意思adwl56.com
百度