My CSV file has several columns with both the String “None” and float numbers.
Is there a method of One Hot Encoding the columns so that only the parts with “None” are 1HEncoded, and the numbers stay as they are?
I think here you should just pass the number as is, and change the Nones to something constant and at the extremities of your data range. E.g a -1 or 0, but it depends on what you are trying to achieve.
Yeah, I was thinking of this as an option but wasn’t sure if it might make the data inaccurate for some reason. Comforts me that another person has the same idea!