NumPy who() Method | Print Arrays in Dictionary

Last Updated : 15 Jul, 2025

The who() function of the NumPy library prints the NumPy ndarray in the given dictionary of the current module.

If no dictionary is passed in or vardict is None then it prints NumPy arrays in the globals() dictionary.

Example

Python3
import numpy as np

# dictionary containing numpy ndarrays
gfg = {'arr_1': np.arange(3), 'arr_2': np.arange(6),
       'name': 'some text', 'number': 34523}
np.who(gfg)

Output: