In what order should the below lines of code be run in order to read a parquet at the file path filePath into a DataFrame?
Lines of code:
1. storesDF
2. .load(filePath, source = "parquet")
3. .read \
4. spark \
5. .read() \
6. .parquet(filePath)
In what order should the below lines of code be run in order to read a parquet at the file path filePath into a DataFrame?
Lines of code:
1. storesDF
2. .load(filePath, source = "parquet")
3. .read \
4. spark \
5. .read() \
6. .parquet(filePath)
To read a parquet file at the file path into a DataFrame, you start with spark, access the read method, and then call parquet with the file path. The correct order is spark, .read(), and .parquet(filePath).
C. 4, 3, 6