Machine learning K-Means applied to SQL Server data


Introduction

In this article, we will use K-Means applied to SQL Server using Python. We will learn what is the K-Means algorithm, how to use Python to create charts, and how to connect to SQL Server. The data in SQL Server will be segmented in clusters using the K-Means algorithm.

Requirements First, you will need Python installed. Secondly, a code editor. In this article, we will use Visual Studio Code, but you can use any other tool of your preference. Thirdly, you will need SQL Server installed. Finally, you will need to have the Adventureworks2019DW database which contains