I am trying to write a code for converting CSV to ARFF. I import the values between each ","
to a cell of an array, for example a instance such as:
Monday,176,49,203,27,77,38,Second
is converted to:
['Monday', '176', '49', '203', '27', '77', '38', 'Second']
The problem is that Python recognize each cell as string and you can see the recognized types by Python for the example:
[<type 'str'>, <type 'str'>, <type 'str'>, <type 'str'>, <type 'str'>, <type 'str'>, <type 'str'>, <type 'str'>]
I am looking for a way to distinguish between nominal and numerical attributes?