SQL Server 2017 support Python service. Which allows you to use python script from SQL queries. Python is great in data processing. In this lecture we have used Python Pandas library to process data frame and to generate cross tab output. Cross tab or matrix in SQL server are difficult to generate as no direct function is available.