DP-500 · Question #139
You have an Apache Spark notebook that contains PySpark code and is used to explore data in an Azure Synapse Analytics workspace. You need to create data visualizations in the notebook by using…
The correct answer is C. Seaborn D. Matplotlib. To create data visualizations within an Azure Synapse Analytics PySpark notebook using built-in libraries, you can utilize Seaborn and Matplotlib, which are popular Python libraries for statistical data visualization and general-purpose plotting, respectively.
Question
Options
- AGleam
- BPlotly
- CSeaborn
- DMatplotlib
How the community answered
(35 responses)- A3% (1)
- B3% (1)
- C94% (33)
Why each option
To create data visualizations within an Azure Synapse Analytics PySpark notebook using built-in libraries, you can utilize Seaborn and Matplotlib, which are popular Python libraries for statistical data visualization and general-purpose plotting, respectively.
Gleam is a Python visualization library, but it is not as commonly built-in or widely adopted for general-purpose data visualization in PySpark notebooks compared to Seaborn or Matplotlib.
Plotly is a powerful interactive graphing library for Python, but while supported, Matplotlib and Seaborn are more foundational and universally considered 'built-in' for data science environments.
Seaborn is a powerful Python data visualization library based on Matplotlib that provides a high-level interface for drawing attractive and informative statistical graphics, commonly used in PySpark notebooks for data exploration and visualization.
Matplotlib is a comprehensive library for creating static, animated, and interactive visualizations in Python, forming the foundation for many other visualization libraries and commonly available in PySpark environments for plotting.
Concept tested: Python visualization libraries in Spark notebooks
Source: https://learn.microsoft.com/en-us/azure/synapse-analytics/spark/apache-spark-notebook-features#data-visualization
Topics
Community Discussion
No community discussion yet for this question.