In data science, the term “tidy data” refers to a specific way of organizing data to make it easy to…