July 2018
Intermediate to advanced
334 pages
8h 20m
English
Invoke the describe and show methods in that order to give us a visual of the first 20 rows as follows:
scala> val expAnalysisTestFrame = spDataFrame.describe("TopHeadline1", "TopHeadline2", "TopHeadline3","TopHeadline4","TopHeadline5", TopHead.....)expAnalysisTestFrame: org.apache.spark.sql.DataFrame = [summary: string, TopHeadline: string ... 25 more fields]scala> newsColsOnly.show
In the next step, let's add a new column to the DataFrame, an expAnalysisTestFrame, called AllMergedNews.
Read now
Unlock full access