# python node - 5 columns expected but only 2 written to csv. . .

**URL:** <https://forum.knime.com/t/python-node-5-columns-expected-but-only-2-written-to-csv/47320>\
**Category:** KNIME Analytics Platform\
**Tags:** python\
**Created:** [September 19, 2022, 2:55pm UTC](https://forum.knime.com/t/python-node-5-columns-expected-but-only-2-written-to-csv/47320 "2022-09-19T14:55:29Z")\
**Posts on this page:** 1\
**Showing post:** 6

<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:** [September 21, 2022, 7:22pm UTC](https://forum.knime.com/t/python-node-5-columns-expected-but-only-2-written-to-csv/47320/6 "2022-09-21T19:22:26Z")

</div>

@sanderlenselink the [environment propagation](https://www.knime.com/blog/how-to-manage-python-environments-conda-and-knime) is from a Mac system. You can try to use the included yaml file under /data/ and create your own environment from scratch on Windows.

> **[Meta Collection about KNIME and Python – mlauber71](https://hub.knime.com/mlauber71/spaces/Public/_knime_and_python_meta_collection~AvjrddXKOIoZYLV3/current-state)**
>
> KNIME and Python - just good friends

> [@Which Python versions works better with Knime?](https://forum.knime.com/t/which-python-versions-works-better-with-knime/39205/2):
>
> @JayR the thing is you will have to find the right combination of Python version and packages that would work with KNIME as well as your individual packages What I would do install [Miniconda](https://docs.conda.io/en/latest/miniconda.html) on your system (how to [manage environments](https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html)) Choose a major Python version (like 3.8) that would most likely work with you package look up a [suitable YML file provided by KNIME](https://bitbucket.org/KNIME/knime-python/src/master/org.knime.python2.envconfigs/envconfigs/) (python version and operating system) edit the file so it would suite your initial needs. Use only ‘[conda-forge](https://anaconda.org/conda-forge/repo)’ and add additiona…

Or indeed you could use your existing python environment and just add the package like @Daniel_Weikert has suggested. Also there might be other ways to clean the headers.

And then there is the other python node which does not use partquet at all.

---

_[View the full topic](https://forum.knime.com/t/python-node-5-columns-expected-but-only-2-written-to-csv/47320)._
