Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
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

Product type Book
Published in Oct 2018
Publisher Packt
ISBN-13 9781789131956
Pages 340 pages
Edition 1st Edition
Languages
Authors (5):
Thomas K Abraham Thomas K Abraham
Profile icon Thomas K Abraham
Parashar Shah Parashar Shah
Profile icon Parashar Shah
Jen Stirrup Jen Stirrup
Profile icon Jen Stirrup
Lauri Lehman Lauri Lehman
Profile icon Lauri Lehman
Anindita Basak Anindita Basak
Profile icon Anindita Basak
View More author details
Toc

Table of Contents (14) Chapters close

Preface 1. AI Cloud Foundations 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 £13.99/month. Cancel anytime