Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Certified Associate Developer for Apache Spark All Questions

View all questions & answers for the Certified Associate Developer for Apache Spark exam

Exam Certified Associate Developer for Apache Spark topic 1 question 137 discussion

The code block shown below should return a new DataFrame where rows in DataFrame storesDF with missing values in every column have been dropped. Choose the response that correctly fills in the numbered blanks within the code block to complete this task.

Code block:

storesDF.__1__.2__(3__ = __4__)

  • A. 1. na
    2.drop
    3. how
    4."any"
  • B. 1. na
    2.drop
    3. subset
    4."all"
  • C. 1. na
    2.drop
    3.subset
    4. "any"
  • D. 1. na
    2.drop
    3. how
    4. "all"
  • E. 1. drop
    2. na
    3. how
    4. "all"
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Samir_91
5 months, 3 weeks ago
Selected Answer: D
in every column --->all any of columns --->any
upvoted 1 times
...
Samir_91
5 months, 3 weeks ago
in every column --->all any of columns --->any
upvoted 1 times
...
jtu363
6 months, 1 week ago
Selected Answer: A
storesDF.na.drop(how="any").show()
upvoted 1 times
...
Sowwy1
7 months, 2 weeks ago
D. 1. na 2.drop 3. how 4. "all"
upvoted 1 times
...
arull
10 months ago
Isn't it option B ? Result_df = storesDF.na.drop(subset="all")
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
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.

SaveCancel
Loading ...