Q1: Can you differentiate between Matplotlib and Seaborn?
Under what circums
tances would you prefer to use Seaborn?
Answer: Matplotlib is the foundational tool for 2D plotting in Python, highly custo
mizable but sometimes requiring detailed manual tweaking. Seaborn, built on Mat
plotlib, provides more attractive, statistical graphics with better defaults and simpl
er, high-
level functions. When to use Seaborn: When visual appeal and ease of creating co
mplex visualizations matter, especially for statistical data.
Q2: Explain the concept of a Seaborn 'FacetGrid'. How would you utilize it in a co
mplex data visualization task?
Answer:FacetGrid in Seaborn allows creating a grid of plots based on categorical d
ata, perfect for visualizing data distribution across multiple subsets. For instance, i
t’s useful for comparing trends in sales data for different products over time, maki
ng patterns and outliers easier to spot.