Databricks Ml Associate Certification (Old)
Which of the following will choose the columns you wish to work with from a dataframe? a) ns b) t c) Column d) e - Answer- b) t(columns_to_keep) Which of the following will list the column names from a dataframe? a) ns b) t c) Column d) e - Answer- a) ns Which of the following will let you remove the $ from a price field string so you can recast it as a double? a) ns b) t c) Column d) e - Answer- c) Column("price", translate(col("price"), "$", "").cast("double")) Which of the following will let you select a subset of the data from your dataframe? a) ns b) t c) Column d) e - Answer- d) e(.01) True or False. eOrReplaceTempView( ) will convert a Python dataframe so that it can be used with SQL queries. - Answer- True Which of the following will list the number of partitions used for storing a dataframe? a) b) ().count() c) NumberPartitions d) ().toPandas() - Answer- c) NumberPartitions Which of the following will speed up reading your full dataframe? a) b) ().count() c) df
Document information
- Uploaded on
- September 6, 2023
- Number of pages
- 6
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers