Run code by typing in terminal:
spark-submit Assignment2.py
It will generate a text file "ass2-eda-result.txt" in the same folder in which Assignment2.py file is present. The result file contains the class proportion for the instances in the order in which the instance are available in file "ass2-eda-18.txt".
Result file is included.