How to run Spark python code in Jupyter Notebook via command prompt
First time when you executed your code, you might have executed it from the same location where your te.csv file was present.
Are you executing this code in the same location as before? If not, then I suggest you put in and reference the absolute path of te.csv in your code. This should then run without a hitch.