relplot is Seaborn’s relationship-visualization function for numeric columns. It defaults to a scatter plot and accepts x, y, and data as core arguments. section 11.16 section 11.18
Compare weather measurements
Use sns.relplot(x='max_temp', y='min_temp', data=df) to compare temperatures. Add hue='city' to distinguish cities, style='city' to vary markers, or row='city' to create separate panels. Switch to kind='line' for trends, and use ci=None to remove confidence intervals. section 11.16 section 11.18
Explore taxi data
For a large taxi dataset, first work with a one-percent sample. Plot trip_distance against total_amount and color points by passenger_count. Then plot day against trip_distance with kind='line' and hue='month' to compare monthly patterns. section 11.18
sns.relplot(x='max_temp',
y='min_temp',
data=df.loc[df['city'] == 'Chicago'])
Open the executable weather scatter-plot example using filtered Chicago data. section 11.16
sns.relplot(x='trip_distance',
y='total_amount',
data=df,
hue='passenger_count')
Open the executable taxi scatter-plot example comparing trip distance and fare. section 11.18
