I am experiencing the same problem while using filter_dataframe. When I include float values in the dataframe I get: StreamlitAPIException: (“Expected bytes, got a ‘float’ object”, ‘Conversion failed for column XXX with type object’). I can convert the floats to strings either in config by adding
[global]
dataFrameSerialization =“legacy”
or in the code directly with
df=df.astype(str)
but this defeats the purpose of the filter – I cannot use any slider on my float values.
Please check the type of your pandas columns with dtypes and set the type. If this doesn’t work, it will help if you include some reproducible code for someone to go through and comment.