# Python node failing - No serializer extension having the id or processing python type "int"

**URL:** <https://forum.knime.com/t/python-node-failing-no-serializer-extension-having-the-id-or-processing-python-type-int/11203>\
**Category:** KNIME Analytics Platform\
**Tags:** python\
**Created:** [June 3, 2018, 8:13am UTC](https://forum.knime.com/t/python-node-failing-no-serializer-extension-having-the-id-or-processing-python-type-int/11203 "2018-06-03T08:13:28Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![astreiff](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/a/e56c9b/32.png) [@astreiff](https://forum.knime.com/u/astreiff)\
**Post date:** [July 7, 2018, 4:36pm UTC](https://forum.knime.com/t/python-node-failing-no-serializer-extension-having-the-id-or-processing-python-type-int/11203/21 "2018-07-07T16:36:41Z")

</div>

ghianda-

Marcel’s comment above is right on. I believe the default dtype for pandas get\_dummies is np.uint8. You should first try to use the dtype parameter np.int32 (something like below). If that doesn’t work, convert the column(s) dtype(s) as Marcel pointed out. For my dataset, I converted the “by\_id” column to a string, but the column could be converted to “int32” (provided the values are all integers) and the node will execute properly.

import pandas as pd  
import numpy as np  
pd.get\_dummies(input\_table, dtype=np.int32)

Adriane

---

<div class="post-metadata">

**Author:** ![vadimshumilov](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/v/da6949/32.png) [@vadimshumilov](https://forum.knime.com/u/vadimshumilov)\
**Post date:** [July 12, 2018, 5:50am UTC](https://forum.knime.com/t/python-node-failing-no-serializer-extension-having-the-id-or-processing-python-type-int/11203/22 "2018-07-12T05:50:26Z")

</div>

Thank you Marcel, I got my script working with 2 extra lines at the end:

1. All integer columns to int 32: df[[‘col1’, ‘col2’,‘col3’]] = df[[‘col1’,‘col2’,‘col3’]].astype(‘int32’)
2. And not forgetting to reset the index as my df was concatenated multiple times: df = df.reset\_index(drop=True)
3. … and then final output: output\_table = df

Note: quickest way to find all integer columns is to run df.dtypes which gives you all columns and their respective types. Mine were actually **int64** which was resulting in the error

Thanks again for quick action on this  
Vadim

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [July 19, 2018, 5:50am UTC](https://forum.knime.com/t/python-node-failing-no-serializer-extension-having-the-id-or-processing-python-type-int/11203/23 "2018-07-19T05:50:34Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

[Previous page](https://forum.knime.com/t/python-node-failing-no-serializer-extension-having-the-id-or-processing-python-type-int/11203.md?page=1)
