July 2017
Intermediate to advanced
796 pages
18h 55m
English
As mentioned earlier, we can create DataFrame using external data source APIs as well. For the following example, we used com.databricks.spark.csv API as follows:
flightDF<- read.df(dataPath, header='true', source = "com.databricks.spark.csv", inferSchema='true')
Let's see the structure by exploring the schema of the DataFrame:
printSchema(flightDF)
The output is as follows:

Now let's see the first 10 rows of the DataFrame:
showDF(flightDF, numRows = 10)
The output is as follows:
Read now
Unlock full access