I learned this by accident. I recently bought an air purifier and I leave it at full blast in the morning while I'm working. This unintentionally put me in the zone
I think it goes without saying that this is too relative. One thing that is common in both fields is the level of research and reading docs it entails.
I used to tell my students "software engineering is 70% reading and 30% coding". This remained consistent as I dove into Data Science and now ML with computer vision at Roboflow.
Of course the first time I was exposed to it during a fellowship, I thought I was out of my depths, but this comes with everything new.
To @deepsun point, I've found Kaggle's intro courses quite excellent as well.