Conventions used
There are a number of text conventions used throughout this book.
Code in text
: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: “The createOrReplaceTempView()
method allows us to save the processed data as a view in Spark SQL.”
A block of code is set as follows:
# Perform an aggregation to calculate the average salary average_salary = spark.sql("SELECT AVG(Salary) AS average_salary FROM employees")
Bold: Indicates a new term, an important word, or words that you see on screen. For instance, words in menus or dialog boxes appear in bold. Here is an example: “The exam consists of 60 questions. The time you’re given to attempt these questions is 120 minutes.”
Tips or important notes
Appear like this.