Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created January 16, 2021 06:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amankharwal/06fdd6220ca3642df430e5e101daf6db to your computer and use it in GitHub Desktop.
Save amankharwal/06fdd6220ca3642df430e5e101daf6db to your computer and use it in GitHub Desktop.
df1=dff[['type','release_year']]
df1=df1.rename(columns={"release_year": "Release Year"})
df2=df1.groupby(['Release Year','type']).size().reset_index(name='Total Content')
df2=df2[df2['Release Year']>=2010]
fig3 = px.line(df2, x="Release Year", y="Total Content", color='type',title='Trend of content produced over the years on Netflix')
fig3.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment