I want to further break down this code by another column in the df named ‘chamber’. The result should be 4 lines; House Dem, House Rep, Senate Dem, and Senate Rep. Does anyone know how I can do this?
<code> sns.lineplot(x='year',
y='age',
hue='party',
data = dem_rep,
)
</code>
<code> sns.lineplot(x='year',
y='age',
hue='party',
data = dem_rep,
)
</code>
sns.lineplot(x='year',
y='age',
hue='party',
data = dem_rep,
)
I’ve spent 20 minutes searching for an answer but couldn’t find one
New contributor
Syed Usmani is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.