You need to import and alias numpy to np for it work fine.
Do look into the docs for importing and aliasing - https://betterdocs.tech/python/libs/numpy/stable/introduction/installation