December 2018
Beginner to intermediate
682 pages
18h 1m
English
With the help of seaborn.factorplot(), we can draw categorical point plots, box plots, violin plots, bar plots, or strip plots onto a seaborn.FacetGrid() by tuning the kind parameter. The default plot type for factorplot is point plot. Unlike other plotting functions in Seaborn, which support a wide variety of input data formats, factorplot supports pandas DataFrames as input only, while variable/column names can be supplied as string to x, y, hue, col, or row:
import seaborn as snsimport matplotlib.pyplot as pltsns.set(style="ticks")# Plot EOD stock closing price vs Date for each company.# Color of plot elements is determined by company name (hue="Company"),# plot panels are also arranged in columns accordingly (col="Company"). ...