Reading preferences
Concept

Python's Data Toolkit

See how NumPy, Pandas, Matplotlib, and Jupyter support different stages of exploration.

python, numpy, pandas, matplotlib, jupyter, data

Different tools, different jobs

NumPy provides numeric arrays and array operations. Pandas builds labelled tables and data-analysis tools. Matplotlib draws charts. Jupyter provides notebooks containing text and code cells, run by a separate kernel. These are third-party tools for a learner's own environment, not runtime dependencies or live execution on Intuvo.

Python illustration

In a separate environment with NumPy and Pandas installed:

import numpy as np
import pandas as pd

values = np.array([2, 4, 6])
doubled = values * 2
table = pd.DataFrame({"score": values})
print(doubled.tolist())
print(table["score"].mean())

Prepared output — not live execution:

[4, 8, 12]
4.0

The array multiplication applies to each value; the DataFrame column's mean is the sum divided by three. List multiplication has different behaviour.

See the reasoning

Follow the example one step at a time

Trace the values from a numeric array to a labelled column. This is a prepared teaching demonstration, not live code execution.

Create an array

values → [2, 4, 6]

NumPy stores the three numeric values in an array.

From table to chart to notebook

For example, plt.plot([1, 2, 3], [2, 4, 6]) after import matplotlib.pyplot as plt creates a line plot; add a title and axis labels, then use plt.show() in an appropriate local environment. A chart is not a substitute for checking the data, units, missing values, or assumptions. Pandas may represent missing values in different ways; choose how to handle them explicitly.

In Jupyter, a kernel keeps state between cell executions. Displayed cell order does not prove execution order: restart the kernel and run cells in order to check reproducibility. Only run notebooks and install packages from sources you trust; a notebook can contain executable code.

Reflect on the concept

Four fixed questions to reinforce the reasoning. Answers are not saved or scored.

1. What does multiplying a numeric NumPy array by 2 normally do?
2. What is a Pandas DataFrame useful for?
3. What does Matplotlib help create?
4. What is a Jupyter notebook kernel?

References and further reading