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.
SubscribeRelated
empty_likeones_likezeros_likefull