Github user holdenk commented on a diff in the pull request:
https://github.com/apache/spark/pull/19632#discussion_r148430264
--- 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 --
So I think we should expect folks to read the examples in addition to
running them. That being said I don't think we need this comment specifically.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]