Hi,
To be able to modify the payload before is written into the bucket, you need to use a product.
After the product is defined, in its profile, you may add the bucket to be subscribed to the topic, therefore in this bucket profile, you may establish to execute a script before the msg’s payload is used.
In this script, you can use a method like → JavaScript parseFloat() Method to modify the desired string values to float.
To import and export the data → https://docs.thinger.io/features/buckets#bucket-data-import
When data is exported, it is a standard .csv file, however currently I am not totally sure if strings values are in between quote marks, if not, necessarily you are going to need to write the correct datatype values from another method before importing the .csv file.
Why this? this is because the database establish the data type when the bucket is empty, when this first dataset written, it establish each datatype (boolean, string, float…) for each column, after this it does not allow to write a string into a bool value (for example).
What do I recommend? if the data is not critical and you can start to fill this bucket from scratch, clear the whole bucket and write the script to modify the values you need to store as float and start storing it in this way.
If you have time and want to mess around, for testing purposes, download the data and check if the float are in between quote marks, upload data to a new bucket to verify how is stored and it works with the widget, etc…
Hope this helps.