Skip to content

Made a little change to your code at number 9 #2

@Stephenob6

Description

@Stephenob6

Set the figure style and initalize a new figure

plt.style.use('fivethirtyeight')
fig = plt.figure(figsize=(12,8))

Create a scatter plot of duration versus release_year

plt.scatter(netflix_movies_col_subset["release_year"], netflix_movies_col_subset["duration"], c = colors)

Create a title and axis labels

plt.title("Movie duration by year of release")
plt.xlabel("Release year")
plt.ylabel("Duration (min)")

Show the plot

plt.show()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions