From 104ce4c4028ce6e2f31197d7ac9c3cad9b465986 Mon Sep 17 00:00:00 2001 From: ivanchenph <7087838+ivanchenph@users.noreply.github.com> Date: Fri, 3 Sep 2021 17:56:35 +0800 Subject: [PATCH] Update DLPythonNetworkSpecToDataFrameConverter.py The convert_objects API has changed to convert_dtypes --- .../py/DLPythonNetworkSpecToDataFrameConverter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.knime.dl.python/py/DLPythonNetworkSpecToDataFrameConverter.py b/org.knime.dl.python/py/DLPythonNetworkSpecToDataFrameConverter.py index 612223bc..99526a40 100644 --- a/org.knime.dl.python/py/DLPythonNetworkSpecToDataFrameConverter.py +++ b/org.knime.dl.python/py/DLPythonNetworkSpecToDataFrameConverter.py @@ -85,7 +85,7 @@ def __layer_data_specs_to_data_frame(self, layer_specs): specs.iloc[idx, 4] = tensor_spec.element_type specs.iloc[idx, 5] = tensor_spec.dimension_order - specs_with_numeric_types = specs.convert_objects(convert_numeric=True) + specs_with_numeric_types = specs.convert_dtypes() specs_with_numeric_types['id'] = specs_with_numeric_types['id'].astype(str) specs_with_numeric_types['name'] = specs_with_numeric_types['name'].astype(str) return specs_with_numeric_types