HyukjinKwon commented on code in PR #37948:
URL: https://github.com/apache/spark/pull/37948#discussion_r977083499


##########
python/pyspark/pandas/resample.py:
##########
@@ -491,3 +737,37 @@ def __getattr__(self, item: str) -> Any:
 
     def _handle_output(self, psdf: DataFrame) -> Series:
         return first_series(psdf).rename(self._psser.name)
+
+
+def _test() -> None:
+    import os
+    import doctest
+    import sys
+    import numpy
+    from datetime import datetime
+    from pyspark.sql import SparkSession
+    import pyspark.pandas.resample
+
+    os.chdir(os.environ["SPARK_HOME"])
+
+    globs = pyspark.pandas.resample.__dict__.copy()
+    globs["np"] = numpy

Review Comment:
   Let's probably import this within the example. `datetime` too.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to