ex.[‘march 5’,430.0]
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Heya,
From what you have provided as an example. it seems like you want to convert a list containing a string and a float into a new list, where the string is replaced with a float.
In the exact example you provided it seems that the string represents a date, but it’s not clear how you want to convert the date string into a float. I will assume that you want to convert the date string into a timestamp (float) for this explanation. You can use the
datetime
module in Python. Here’s an example of how to do it: