You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when using shiny.express even if the choices are non-strings for example ui.input_select('tournament', 'Filter by Making NCAA Tournament', choices=[True, False])
When calling input.tournament() the value is sent as a string instead of bool, same is true for integers as well. The workaround I found was to do ui.input_select('tournament', 'Filter by Making NCAA Tournament', choices=['True', 'False']) and input_df = data[data['NCAA Tournament'].astype(str) == input.tournament()].
The text was updated successfully, but these errors were encountered:
when using shiny.express even if the choices are non-strings for example
ui.input_select('tournament', 'Filter by Making NCAA Tournament', choices=[True, False])
When calling input.tournament() the value is sent as a string instead of bool, same is true for integers as well. The workaround I found was to do
ui.input_select('tournament', 'Filter by Making NCAA Tournament', choices=['True', 'False'])
andinput_df = data[data['NCAA Tournament'].astype(str) == input.tournament()]
.The text was updated successfully, but these errors were encountered: