Github user animenon commented on a diff in the pull request:

    https://github.com/apache/spark/pull/19632#discussion_r148628286
  
    --- Diff: examples/src/main/python/pi.py ---
    @@ -27,12 +27,16 @@
     if __name__ == "__main__":
         """
             Usage: pi [partitions]
    +        
    +        Monte Carlo method is used to estimate Pi in the below example.
         """
         spark = SparkSession\
             .builder\
             .appName("PythonPi")\
             .getOrCreate()
    -
    +    
    +    # If no arguments are passed(i.e. `len(sys.argv) < = 1` ) 
    --- End diff --
    
    @srowen Added a line to the 
[index.md](https://github.com/apache/spark/pull/19632/commits/173fd29f20eab1ca8384413548deb5aac509d629)
 as well, I think it would help the curious ones know what algorithm is used 
and why an argument(i.e. 10) is passed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to