Even me i completed my b-tech on electronics and further switch Data Science which turns to be perfect move for me. But honestly saying it fully depends on the individual. If you have basic knowledge about some programming languages like python, R Machine Learning then you can comfortable switch to Data Science. But if you don't have much idea about programming then i suggest you to learn python first or you can learn both python and Data science parallel . As per my experience i suggest you to take proper classes or coaching from the Best Industrial Training in Data Science so that we can acquire all the knowledge and skills needed.