isFloat function in the Factory
The isFloat function checks whether the data type of the attribute specified in the string parameter is continuous.
Parameters Parameter Description string The nominal attribute to be tested. The string parameter is mandatory. binary If it is True, or not specified, results will be provided as Booleans (True/False), while if it is False, results will be provided in binary form (1/0). The binary parameter values (True/False) are case sensitive. Continuous type valid formats (if the values aren’t this format, the function will return a False or 0). 34.000; 34563.876isFloat(string, binary)
Example
The following example uses the Sales Videogames dataset.
Description | Screenshot |
---|---|
In this example, we want to check if the attribute LowUserPrice is a Float attribute. We add a new attribute and write the following formula:
We specified False as binary parameter, so the results will be provided as 1 (True) or 0 (False). |