Skip to content
masterclass Buddy

NumPy · Function

np.full_like

Creates a new array filled with a value, using another array's shape and data type by default. Options can override its type, shape, memory order, subclass behavior, and device.

Last updated

Since
2.0.0

Syntax

numpy.full_like(a, fill_value, dtype=None, order='K', subok=True, shape=None, *, device=None)

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • empty_like
  • ones_like
  • zeros_like
  • full

Source: numpy.full_like — NumPy v2.5 Manual. Checked 2026-11-03.