Rename the file eg to
What happenes is when
Python will try to import it.
So when do
my_numpy.py
.What happenes is when
nupmy.py
file is in Python search path,Python will try to import it.
So when do
import numpy as np
it is in fact using your numpy.py
file and not the numpy package.