mlprodict icon indicating copy to clipboard operation
mlprodict copied to clipboard

String columns in dataframe not supported

Open naitikbhise opened this issue 1 year ago • 1 comments

I am trying to use mlprodict to_onnx function to convert the string columns within a dataframe to onnx format. Working with sklearn-onnx convert_sklearn, the conversion to onnx works well. But I have another usecase and I prefer using the to_onnx .

The error I receive from the conversion is " NotImplementedError: Unsupported type '<class 'str'>'". So a string dataframe column is not converted to StringTensorType.

naitikbhise avatar Jul 11 '23 14:07 naitikbhise

Would it be possible to share an example of what you try to do. I'd like to make it available in sklearn-onnx instead and remove the need for this dependency.

xadupre avatar Oct 02 '23 15:10 xadupre