But which company would sponsor you?
Getting a student visa simply means that you are allowed to stay in the US to get your education; there are no guarantees for a job in the US. You could try to do an OPT (optional training year) which acts as a type of “interview” period for you. The employer pays an intern type of income salary and then when your Visa is up, they say “thanks, have a great life”.
Work visas are controlled by the US Immigration Service and the issue is that employers are required to seek US citizens first for employment. Non-residents cannot be prioritized over a citizen. Plus a number of corporate contracts are for US government clients. And without citizenship you might not be eligible for a US security clearance.
For a work visa, in the US, get in a decades-long line. Large corporate companies, right now, don’t have the time to spend on paperwork or the fees to pay to sponsor a non resident, when there are so many people, with CS and data science degrees, who have been laid off. Google, Facebook, and a lot of the giants have limited their hiring in these areas, and have actually laid people off.
Plan on returning back to Canada after you’ve completed your degree. So choose a school that is going to be inexpensive and a good fit.