Which of the following statements can be used to test the functionality of code to test number of rows in the table equal to 10 in python?
row_count = spark.sql("select count(*) from table").collect()[0][0]
A . assert (row_count = 10, "Row count did not match")
B . assert if (row_count = 10, "Row count did not match")
C . assert row_count == 10, "Row count did not match"
D . assert if row_count == 10, "Row count did not match"
E . assert row_count = 10, "Row count did not match"
Answer: C
Explanation:
The answer is assert row_count == 10, "Row count did not match"
Review below documentation
Latest Databricks Certified Data Engineer Professional Dumps Valid Version with 278 Q&As
Latest And Valid Q&A | Instant Download | Once Fail, Full Refund