Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

input select only seems to return a string #232

Open
nahomjd opened this issue Dec 8, 2024 · 0 comments
Open

input select only seems to return a string #232

nahomjd opened this issue Dec 8, 2024 · 0 comments

Comments

@nahomjd
Copy link

nahomjd commented Dec 8, 2024

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()].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant