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

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

本站已经建立2538天!

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