# Converting Python code to Pyspark

**URL:** <https://forum.knime.com/t/converting-python-code-to-pyspark/69818>\
**Category:** KNIME Analytics Platform\
**Tags:** python\
**Created:** [June 20, 2023, 1:20am UTC](https://forum.knime.com/t/converting-python-code-to-pyspark/69818 "2023-06-20T01:20:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JaeHwanChoi](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/j/3ab097/32.png) [@JaeHwanChoi](https://forum.knime.com/u/JaeHwanChoi)\
**Post date:** [June 20, 2023, 1:20am UTC](https://forum.knime.com/t/converting-python-code-to-pyspark/69818/1 "2023-06-20T01:20:47Z")

</div>

Hi, I have a question about Pyspark nodes.

I want to convert the code written in Python language in Jupyter Notebook to Pyspark Code in KNIME.

In this case, should I convert the Python language in Jupyter to spark language and then import it into KNIME?

Or will the Python language work the same in Pyspark without converting it to spark language?

Thanks.

---

<div class="post-metadata">

**Author:** ![Daniel\_Weikert](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/d/e47c2d/32.png) [@Daniel\_Weikert](https://forum.knime.com/u/Daniel_Weikert)\
**Post date:** [June 20, 2023, 3:35pm UTC](https://forum.knime.com/t/converting-python-code-to-pyspark/69818/2 "2023-06-20T15:35:02Z")

</div>

Hi,  
always best to check for yourself as KNIME is more flexible than one might think 🙂  
but in general  
if you use Pyspark script nodes then you want to write pyspark code  
if you want to use “normal” python then use the python nodes for that  
br

---

<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:** [September 18, 2023, 3:35pm UTC](https://forum.knime.com/t/converting-python-code-to-pyspark/69818/3 "2023-09-18T15:35:33Z")

</div>

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