nerdexam
Microsoft

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.

Explore and visualize data

Question

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 built-in libraries. Which two libraries can you use? Each correct answer presents a complete solution. NOTE: Each correct selection is worth one point.

Options

  • AGleam
  • BPlotly
  • CSeaborn
  • DMatplotlib

How the community answered

(35 responses)
  • A
    3% (1)
  • B
    3% (1)
  • C
    94% (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.

AGleam

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.

BPlotly

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.

CSeabornCorrect

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.

DMatplotlibCorrect

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

#Data Visualization#PySpark#Azure Synapse Analytics#Python Libraries

Community Discussion

No community discussion yet for this question.

Full DP-500 Practice