I went from Cybersecurity (Infosec) to Data Science/ML. If you have interest/passion, it's totally doable. I get asked this kind of question a lot, so I created a listing of the stuff I've found most useful (books, online classes, etc). You can find it at
If you have stuff you think I should add, please let me know! (jan @ghostbytes.com)