Skip to content

Instantly share code, notes, and snippets.

View followcrom's full-sized avatar
💭
accelerating returns

followCrom followcrom

💭
accelerating returns
View GitHub Profile
fig, ax1 = plt.subplots(figsize=(12,6))
plt.title("Popularity / Release Density by Year", fontsize=12)
lin=sns.lineplot(x='year', y='popularity', data=raw_df, color='b', ax=ax1)
plt.xlabel('Year')
plt.ylabel('Popularity')
ax2 = ax1.twinx()
sns.kdeplot(raw_df.year, color='r', fill=True, ax=ax2)