[solved]-Using Python Code Link 1976 2018 Senatecsv File Https Wwwdropboxcom S Nb0lv2cohvdfntu 1976 Q38990554
Using python code. Link to 1976-2018-senate.csv file:https://www.dropbox.com/s/nb0lv2cohvdfntu/1976-2018-senate.csv?dl=0

Load 1976-2018-senate.csv and use Plotly to create the following map. Every figure must have a title and a legend. a. (Figure 3) Create a Choropleth map for the 2018 US Senate election. The map should show the entire United States. Each state should be color coded. The value for each state is the winning candidate’s vote percentage. Divide the vote percentage into 6 bins and create a color scale for it. When the mouse cursor hovers over each state, the winning candidate’s name and party affiliation should be displayed in the tooltip window. For example, Wyoming’s 2018 winning candidate was John Barrasso, Repblication. His vote percentage was 136210/203420. b. You must use Plotly API to create the charts. Do not use Plotly Chart Studio. Show transcribed image text Load 1976-2018-senate.csv and use Plotly to create the following map. Every figure must have a title and a legend. a. (Figure 3) Create a Choropleth map for the 2018 US Senate election. The map should show the entire United States. Each state should be color coded. The value for each state is the winning candidate’s vote percentage. Divide the vote percentage into 6 bins and create a color scale for it. When the mouse cursor hovers over each state, the winning candidate’s name and party affiliation should be displayed in the tooltip window. For example, Wyoming’s 2018 winning candidate was John Barrasso, Repblication. His vote percentage was 136210/203420. b. You must use Plotly API to create the charts. Do not use Plotly Chart Studio.
Expert Answer
Answer to Using python code. Link to 1976-2018-senate.csv file: https://www.dropbox.com/s/nb0lv2cohvdfntu/1976-2018-senate.csv?dl=… . . .
OR

