Answers for "Generate seaborn plot."

0

Generate seaborn plot.

#relational plot

import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt

housing = pd.read_csv('data.csv')
sns.set_theme()##set seaborn defaults
sns.relplot(data=housing, x='label', y='label',
             hue='Overall Qual',
            palette='RdYlGn',
            size = 'Var',
            sizes = (1,300)
           	col='Year')
plt.show()
Posted by: Guest on August-14-2021

Python Answers by Framework

Browse Popular Code Answers by Language