Skip to content
Errors
Commands
Flags
Config
Cheat sheets
Changes
Compat
Codes
Compare
Glossary
Search
Ctrl K
Browse
Error Messages
Commands
Flags & Options
Config Reference
Cheat Sheets
Version Changes
Compatibility
Codes & Tables
X vs Y
Glossary
All tools
Home
Tools
NumPy
Data & ML
NumPy
Numerical arrays for Python.
Official documentation
Errors
1
Compat
1
ValueError: operands could not be broadcast together with shapes
NumPy raises operands could not be broadcast together when array shapes are incompatible. Compare shapes from the right: each pair must be equal or 1.
All NumPy error messages
NumPy versions and supported Python versions (2.0 to 2.5)
Python versions supported by each NumPy release: 2.0 runs on 3.9-3.12, 2.1 and 2.2 on 3.10-3.13, 2.4 on 3.11-3.14 and 2.5 on 3.12-3.14, per the release notes.
All NumPy compatibility
Esc