create a main function in python and passing arguments
<p>Iam new with python and I did my first program in Python with jupyter notebook.
Here my tutor, said to me that I have to converti it into a script .py with passing arguments.
I try to do this byte per byte .</p>

<p>Can you just help me how to begin the script and passing New1 and New as arguments.</p>

<pre><code>df_equipment = pd.read_csv('C:/Users/Demonstrator/Downloads/New1.csv',delimiter=';', parse_dates=[0], infer_datetime_format = True)
df_energy2=pd.read_csv('C:/Users/Demonstrator/Downloads/New2.csv', delimiter=';', parse_dates=[0], infer_datetime_format = True)
</code></pre>

<p>Thank you</p>

<p>Try this <a href="http://www.pythonforbeginners.com/system/python-sys-argv" rel="nofollow">tutorial for using sys.argv</a>.  When you are ready to be more robust about argument parsing, look into this <a href="https://docs.python.org/3/howto/argparse.html" rel="nofollow">argparse tutorial</a>.</p>

python