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

本站现有博文328篇,共被浏览850895

本站已经建立2557天!

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