EADST

Numpy: Sorting Multidimensional Array

Sorting Multidimensional Array with numpy. Here is the code.

import numpy as np

data = np.array([[7, 8], [4, 6], [1, 9], [3, 5], [2, 0]])
data = data[np.argsort(data[:, 0])]
print(data)
'''
output:
[[1 9]
 [2 0]
 [3 5]
 [4 6]
 [7 8]]
'''
相关标签
About Me
XD
Goals determine what you are going to be.
Category
标签云
Firewall ChatGPT CAM Jetson Search v2ray 证件照 Streamlit Template Bipartite Zip scipy NLP 论文 Pytorch Jupyter Ubuntu LoRA Random SQL GoogLeNet OCR C++ CUDA Domain RGB SAM QWEN Math 签证 YOLO ONNX 递归学习法 NameSilo Statistics Tensor Quantization transformers InvalidArgumentError Google 公式 PDF TensorFlow 多线程 FP16 VGG-16 LaTeX Translation Interview Base64 Linux Python git-lfs Video FastAPI Vmess WAN Hotel 报税 域名 IndexTTS2 Django EXCEL uwsgi Gemma Password 腾讯云 Michelin COCO Llama HuggingFace CC Baidu FlashAttention LLAMA tqdm 第一性原理 净利润 Proxy HaggingFace v0.dev Docker GPTQ Nginx Review Safetensors 顶会 音频 Bert TensorRT Attention 图标 Diagram Pickle BeautifulSoup DeepSeek BF16 搞笑 Qwen2 Shortcut Quantize tar CTC VSCode PIP 图形思考法 Hilton Git Miniforge 论文速读 XGBoost ResNet-50 强化学习 Animate LeetCode ms-swift Qwen Conda Pandas DeepStream Input CV Data TTS 阿里云 JSON Ptyhon Anaconda BTC Food Sklearn Qwen2.5 Datetime TSV API Vim Bin Agent Algorithm Image2Text Plotly UI WebCrawler 关于博主 XML Numpy CLAP Github AI icon 算法题 ModelScope News llama.cpp Color Augmentation Tracking Transformers Bitcoin Paddle RAR Hungarian Tiktoken Dataset CSV MD5 mmap LLM SQLite Web UNIX GIT Breakpoint FP8 Use 财报 Cloudreve Card PyCharm 版权 git Website GPT4 printf FP64 FP32 Rebuttal Plate uWSGI Paper 飞书 多进程 Freesound Windows Clash Heatmap RL Permission Excel Distillation hf VPN PyTorch NLTK Mixtral SPIE SVR OpenAI PDB Disk 继承 CEIR Claude Pillow Logo Knowledge GGML Magnet Land 云服务器 torchinfo Markdown diffusers logger Crawler OpenCV
站点统计

本站现有博文332篇,共被浏览869410

本站已经建立2578天!

热门文章
文章归档
回到顶部