Book Image

Data Science with SQL Server Quick Start Guide

By : Dejan Sarka
Book Image

Data Science with SQL Server Quick Start Guide

By: Dejan Sarka

Overview of this book

SQL Server only started to fully support data science with its two most recent editions. If you are a professional from both worlds, SQL Server and data science, and interested in using SQL Server and Machine Learning (ML) Services for your projects, then this is the ideal book for you. This book is the ideal introduction to data science with Microsoft SQL Server and In-Database ML Services. It covers all stages of a data science project, from businessand data understanding,through data overview, data preparation, modeling and using algorithms, model evaluation, and deployment. You will learn to use the engines and languages that come with SQL Server, including ML Services with R and Python languages and Transact-SQL. You will also learn how to choose which algorithm to use for which task, and learn the working of each algorithm.
Table of Contents (15 chapters)
Title Page
Copyright and Credits
Packt Upsell
Contributors
Preface
Index

Chapter 3. Getting Familiar with Python

Python is a general-purpose high-level interpreted language. Because it is a general-purpose language, it is probably even more popular than R or T-SQL. Python was created by Guido van Rossum, with the first release in 1991. SQL Server 2016 started to support R. In addition, SQL Server 2016 brought all of the infrastructure needed to support additional languages. Therefore, it was easy for SQL Server 2017 to add support for Python. In the future, SQL Server might support even more programming languages. I will explain the SQL Server infrastructure later in this chapter. Anyway, it is now up to you to select your language of preference for data science projects. 

One of the most important ideas behind Python was code readability. In Python, white spaces are used to delimit code blocks instead of special characters, and indents are very important. As an interpreted language, Python has automatic memory management. For the sake of simplicity, it has a...