AI engineering glossary · NumPy pandas visualization

What is array indexing?

Array indexing: Reading or changing specific elements of an array by giving their positions in square brackets. Positions start at 0, negative numbers count from the end, and a multi-dimensional array takes one index per axis, separated by commas.

Level: beginnerTopic: NumPy pandas visualization

Array indexing: an example

With a = np.array([[10, 20], [30, 40]]), a[1, 0] returns 30 and a[-1, -1] returns 40.

Related terms

More NumPy pandas visualization terms

Where you learn it

Array indexing is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.