AI engineering glossary · NumPy pandas visualization

What is .npy file?

.npy file (also called np.save, np.load, npz): NumPy's binary file format for saving a single array exactly, including its shape and data type, using np.save and np.load. It is much faster and more compact than text files such as CSV, but is meant for NumPy-to-NumPy exchange, and a related .npz format stores several arrays together.

Level: intermediateTopic: NumPy pandas visualization

.npy file: an example

np.save('embeddings.npy', arr) writes a large array to disk; np.load('embeddings.npy') restores it identically.

Related terms

More NumPy pandas visualization terms

Where you learn it

.npy file 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.