A data scientist is wanting to explore the Spark DataFrame spark_df. The data scientist wants visual histograms displaying the distribution of numeric features to be included in the exploration.
Which of the following lines of code can the data scientist run to accomplish the task?
To display visual histograms and summaries of the numeric features in a Spark DataFrame, the Databricks utility function dbutils.data.summarize can be used. This function provides a comprehensive summary, including visual histograms.
Correct code:
dbutils.data.summarize(spark_df)
Other options like spark_df.describe() and spark_df.summary() provide textual statistical summaries but do not include visual histograms.
Databricks Utilities Documentation
Antonio
9 months agoTresa
9 months agoMarshall
8 months agoBilly
8 months agoIsadora
9 months agoCarline
8 months agoAnnice
8 months agoHayley
8 months agoCorazon
9 months agoIrma
9 months agoNakita
9 months agoMelissa
9 months agoSharee
8 months agoIsaiah
8 months agoJosephine
8 months agoDortha
9 months agoKara
9 months ago