LoslegenKostenlos loslegen

Shooting ability by position

The agency is producing an article about how 3 point field goal shooting ability has changed across basketball positions over the years.

They have asked you to produce a bar plot representing 3 point field goal percentage by position for the 2017 NBA season, which will be included in their article.

pandas has been imported as pd and the nba dataset preloaded for you. figure has also been imported from bokeh.plotting, along with output_file and show from bokeh.io. These will all be preloaded for you throughout the remainder of the course.

Diese Übung ist Teil des Kurses

Interactive Data Visualization with Bokeh

Kurs anzeigen

Interaktive Übung

Vervollständige den Beispielcode, um diese Übung erfolgreich abzuschließen.

# Calculate average three point field goal percentage by position
positions = nba.____("____", as_index=False)["____"].mean()
Code bearbeiten und ausführen