The code block shown below should cache DataFrame storesDF only in Spark's memory. Choose the response that correctly fil ls in the numbered blanks within the code block to complete this task.
Code block:
__1__.__2__(__3__).count()
A.
1. storesDF 2. cache 3. StorageLevel.MEMORY_ONLY
B.
1. storesDF 2. storageLevel 3. cache
C.
1. storesDF 2. cache 3. Nothing
D.
1. storesDF 2. persist 3. Nothing
E.
1. storesDF 2. persist 3. StorageLevel.MEMORY_ONLY
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Ahmadkt
1 year ago