# Python output to a dataframe

**URL:** <https://forum.knime.com/t/python-output-to-a-dataframe/44097>\
**Category:** KNIME Analytics Platform\
**Created:** [June 13, 2022, 1:51pm UTC](https://forum.knime.com/t/python-output-to-a-dataframe/44097 "2022-06-13T13:51:39Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![mlauber71](https://forum-cdn.knime.com/user_avatar/forum.knime.com/mlauber71/32/73590_2.png) [@mlauber71](https://forum.knime.com/u/mlauber71)\
**Post date:** [June 13, 2022, 2:02pm UTC](https://forum.knime.com/t/python-output-to-a-dataframe/44097/2 "2022-06-13T14:02:05Z")

</div>

@TigerCole I think KNIME would not have a data type within KNIME. If you do not need the geo data \*within’ KNIME would it be an option to just store the file (maybe save the path/name) and then reuse it later _in_ a Python node.

> [@Data passing to Python node still slow](https://forum.knime.com/t/data-passing-to-python-node-still-slow/38333/3):
>
> @Experimenter two things about that. With the [version 4.5 KNIME launched a new Python file handling support](https://www.knime.com/whats-new-in-knime-45#python-in-knime) that should greatly increase the speed. You could try a sample here: You will have to active the Apache/Parquet based columnar storage to take full advantage: [https://docs.knime.com/latest/analytics\_platform\_workbench\_guide/index.html#table-backend](https://docs.knime.com/latest/analytics_platform_workbench_guide/index.html#table-backend) Since the new integration is yet in [Labs status](https://forum.knime.com/t/knime-analytics-platform-4-5-released/37974/10) you could also try and use Parquet to bring data in and out of KNIME and [Python](https://hub.knime.com/mlauber71/spaces/Public/latest/_knime_and_python_meta_collection~AvjrddXKOIoZYLV3). Maybe no…

Two additional remarks. You can use Jupyter notebooks with KNIME and also [transfer data between them](https://forum.knime.com/t/unicodeencodeerror-charmap-codec-cant-encode-characters/39199/3)

> **[Use functions and Python code from an external .PY file or a Juypter notebook...](https://hub.knime.com/mlauber71/spaces/Public/kn_example_python_import_module~BQEN92dR6W0cUM8R/current-state)**
>
> Use functions and Python code from an external .PY file or a Juypter notebook in KNIME's Python Source node This workflow demonstrates how modules in (external…

(also check out [the additional links at the sample workflow](https://hub.knime.com/mlauber71/spaces/Public/latest/kn_example_python_import_module~BQEN92dR6W0cUM8R#externalresources))

Then keep in mind, that the new Python nodes make use of the primary keys in a special way:

> [@Python Script (Labs) – Execute failed: Duplicate key detected: "0"](https://forum.knime.com/t/python-script-labs-execute-failed-duplicate-key-detected-0/42901/2):
>
> @Christian_Essen could it be that you might have duplicate IDs (RowIDs) in your data set. You might have to reset the data frame index within the Python node:

---

_[View the full topic](https://forum.knime.com/t/python-output-to-a-dataframe/44097)._
