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

本站现有博文337篇,共被浏览961550次

本站已经建立2673天!

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