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

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

本站已经建立2583天!

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