At this point in time, data science have a very minimal role in software testing.
It is widely used when you have to work with a large amount of data. Like, insurance, banking, the stock market, etc..
But, switching to data science profile will be a little tricky. You can go through online tutorials to learn techniques and try to get into a project that deals with a large amount of data.