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

本站现有博文327篇,共被浏览826462

本站已经建立2533天!

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