Data Science is a rapidly growing field that has become increasingly important in the modern era due…