Question: Create selection function Create a function called on _ selection which is tied to the heatmap with an . observe call on the heatmap's selected

Create selection function
Create a function called on_selection which is tied to the heatmap with an .observe call on the heatmap's selected key.
The function should only allow for one selection at a time (i.e., no multiple cell selection).
The function should change the data used in the bars plot based on the cell selected by the user.
NOTE: Be sure to account for the fact that some cell's will result in empty subset dataframes -- this will lead to an error. To fix this, make sure the bars plot has the value of an empty string (['']) on its x-axis ("B") and the value of [0] on the y-axis ("Mean B") when the subset dataframe is an empty string.
Create selection function Create a function

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!