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

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

本站已经建立2579天!

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