DP-500 · Question #9
You use Azure Synapse Analytics and Apache Spark notebooks to explore native visuals. You need to use PySpark to gain access to the visual libraries. Which Python libraries should you use?
The correct answer is B. Matplotlib and Seaborn. To create native visualizations in Apache Spark notebooks using PySpark, the Matplotlib and Seaborn libraries are commonly used.
Question
Options
- ASeaborn only
- BMatplotlib and Seaborn
- CMatplotlib only
- DMatplotlib and TensorFlow
- ETensorFlow only
- FSeaborn and TensorFlow
How the community answered
(68 responses)- A1% (1)
- B94% (64)
- D3% (2)
- F1% (1)
Why each option
To create native visualizations in Apache Spark notebooks using PySpark, the Matplotlib and Seaborn libraries are commonly used.
While Seaborn is good for visualizations, it is often used in conjunction with Matplotlib for more control and diverse plotting needs.
Matplotlib is a foundational plotting library for Python, providing extensive customization, while Seaborn is built on Matplotlib and offers a high-level interface for drawing attractive and informative statistical graphics, making them both essential for native visualizations.
While Matplotlib is a fundamental visualization library, Seaborn provides a higher-level interface for statistical plots, which are common in data exploration.
TensorFlow is a machine learning library primarily used for building and training neural networks, not for general-purpose data visualization.
TensorFlow is a machine learning library, not a primary visualization library for basic or complex data visuals.
TensorFlow is irrelevant for visualization purposes in this context.
Concept tested: PySpark visualization libraries
Source: https://learn.microsoft.com/en-us/azure/synapse-analytics/spark/apache-spark-dataframe-visualizations
Topics
Community Discussion
No community discussion yet for this question.