Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Hands-On Machine Learning with Azure

You're reading from   Hands-On Machine Learning with Azure Build powerful models with cognitive machine learning and artificial intelligence

Arrow left icon
Product type Paperback
Published in Oct 2018
Publisher Packt
ISBN-13 9781789131956
Length 340 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (6):
Arrow left icon
Jen Stirrup Jen Stirrup
Author Profile Icon Jen Stirrup
Jen Stirrup
Ryan Murphy Ryan Murphy
Author Profile Icon Ryan Murphy
Ryan Murphy
Anindita Basak Anindita Basak
Author Profile Icon Anindita Basak
Anindita Basak
Thomas K Abraham Thomas K Abraham
Author Profile Icon Thomas K Abraham
Thomas K Abraham
Parashar Shah Parashar Shah
Author Profile Icon Parashar Shah
Parashar Shah
Lauri Lehman Lauri Lehman
Author Profile Icon Lauri Lehman
Lauri Lehman
+2 more Show less
Arrow right icon
View More author details
Toc

Table of Contents (14) Chapters Close

Preface 1. AI Cloud Foundations FREE CHAPTER 2. Data Science Process 3. Cognitive Services 4. Bot Framework 5. Azure Machine Learning Studio 6. Scalable Computing for Data Science 7. Machine Learning Server 8. HDInsight 9. Machine Learning with Spark 10. Building Deep Learning Solutions 11. Integration with Other Azure Services 12. End-to-End Machine Learning 13. Other Books You May Enjoy

Using SQL in Azure Databricks

In this section, you can run a SQL statement to create a table and work with data using SQL Statements:

  1. Copy and paste this code snippet into the notebook cell to see a list of the Azure Databricks datasets:
display(dbutils.fs.ls("/databricks-datasets"))
  1. The code appears as follows:
DROPTABLEIFEXISTS diamonds;
CREATETABLE diamonds
USING csv
OPTIONS (path "/databricks-datasets/Rdatasets/data-001/csv/ggplot2/diamonds.csv", header "true")

  1. Press Shift + Enter. The notebook automatically attaches to the cluster you created in Step 2, creates the table, loads the data, and returns OK:
  1. Next, you can run a SQL statement to query the table for the average diamond price by color.
  2. To add a cell to the Notebook, hover over the cell bottom and click the icon:
  1. Copy this snippet and paste it into the cell:
SELECT color, avg...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime