Which library provides fast n-dimensional arrays and vectorized math in Python?
- Exam domain
- Foundations of Accelerated Data Science12% of the exam
- Difficulty
- Easy
- In this mock
- 6 questions on this domainPractise this domain
Why the exam asks this
Foundations of Accelerated Data Science (12% of the exam)
Objective in the exam guide: Python fundamentals for data analysis (NumPy, pandas, Jupyter)
Python fundamentals are the foundation.
Why A is the answer
NumPy
NumPy provides n-dimensional arrays and vectorized operations. pandas builds tables on top; Jupyter is an interface; Matplotlib plots.
Remember: NumPy provides arrays and vectorized math.
How it works
NumPy, pandas and Jupyter are the base tools for data analysis in Python.
In detail
- NumPy: arrays.
- pandas: tables. Jupyter: notebooks.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. NumPyRight
NumPy provides arrays and vectorized math.
B. Jupyter, the notebook interface used to write and run Python code interactivelyWrong
Jupyter is an environment.
C. pandasWrongMost tempting
pandas builds on arrays for tables.
Why it tempts: pandas is the main data tool for many.
D. MatplotlibWrong
Matplotlib draws charts.
Use case
An illustrative scenario, not a real incident.
Illustrative: vectorized NumPy replaces a loop and runs 50 times faster.
See it in different ways
mindmap
root(("Python stack"))
n1["NumPy"]
n2["Arrays"]
n3["pandas"]
n4["DataFrames"]
n5["Matplotlib"]
n6["Plots"]
n7["Jupyter"]
n8["Notebooks"]How to read this chart
- The centre is "Python stack".
- "NumPy" covers "Arrays".
- "pandas" covers "DataFrames".
- "Matplotlib" covers "Plots".
- "Jupyter" covers "Notebooks".
flowchart LR S0["NumPy arrays"] --> S1["pandas DataFrame"] --> S2["Analysis"] --> S3["Matplotlib chart"]
How to read this chart
- Read it in order: NumPy arrays, then pandas DataFrame, then Analysis, then Matplotlib chart.