Get help from the marimo community

Updated 4 weeks ago

Potential bug in drop-down UI elements

Is this supposed to work? If I cast the datetimes to a string, it appears to work
M
1 comment
mo.ui.dropdown, only accepts string types at the moment.

  1. you can cast to a string like you do
  2. you can use mo.ui.dropdown.from_series(df["col_name"] which will also do that for you.
the .value you get back though will be a string. if you want the same datatypes you pass in (int, datatimes), can you file a feature request and we can support that.
Add a reply
Sign up and join the conversation on Discord