Which Python package provides fast n-dimensional arrays?
Why B is the answer
NumPy
NumPy is the array library that much of the Python data stack builds on.
In detail
- NumPy provides fast n-dimensional arrays.
- Much of the Python data stack builds on it.
Use case
An illustrative scenario, not a real incident.
A data scientist stores embeddings in a NumPy array, and computes similarity in a few lines.
See it in different ways
mindmap
root((ML basics))
Labeled data
Classification
Regression
Unlabeled data
Clustering
Validation
Cross validation
Held-out test setmindmap
root(("Python data stack"))
n1["Arrays"]
n2["NumPy"]
n3["Language"]
n4["spaCy"]
n5["Neural networks"]
n6["Keras"]Key point: NumPy provides n-dimensional arrays.
Why the other options are wrong
- A. Beautiful Soup
- That parses HTML.
- C. spaCy
- spaCy is for language.
- D. Flask
- Flask is a web framework.

