Consider $V=\Bbb{R}^2$ and $W=\Bbb{R}^1$, and let $\pi:V\to W$, $\pi(x,y)=x$. Let $\beta=\\{(1,0),(1,1)\\}$, then $\pi(\beta)=\\{(1)\\}$, which is basis of $W$.
Consider $V=\Bbb{R}^2$ and $W=\Bbb{R}^1$, and let $\pi:V\to W$, $\pi(x,y)=x$. Let $\beta=\\{(1,0),(1,1)\\}$, then $\pi(\beta)=\\{(1)\\}$, which is basis of $W$.