spark-instrumented-optimizer/python/pyspark/pandas/tests/plot
Xinrong Meng 4d2b559d92 [SPARK-34999][PYTHON] Consolidate PySpark testing utils
### What changes were proposed in this pull request?
Consolidate PySpark testing utils by removing `python/pyspark/pandas/testing`, and then creating a file `pandasutils` under `python/pyspark/testing` for test utilities used in `pyspark/pandas`.

### Why are the changes needed?

`python/pyspark/pandas/testing` hold test utilites for pandas-on-spark, and `python/pyspark/testing` contain test utilities for pyspark. Consolidating them makes code cleaner and easier to maintain.

Updated import statements are as shown below:
- from pyspark.testing.sqlutils import SQLTestUtils
- from pyspark.testing.pandasutils import PandasOnSparkTestCase, TestUtils
(PandasOnSparkTestCase is the original ReusedSQLTestCase in `python/pyspark/pandas/testing/utils.py`)

Minor improvements include:
- Usage of missing library's requirement_message
- `except ImportError` rather than `except`
- import pyspark.pandas alias as `ps` rather than `pp`

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Unit tests under python/pyspark/pandas/tests.

Closes #32177 from xinrong-databricks/port.merge_utils.

Authored-by: Xinrong Meng <xinrong.meng@databricks.com>
Signed-off-by: Takuya UESHIN <ueshin@databricks.com>
2021-04-22 13:07:35 -07:00
..
__init__.py [SPARK-35033][PYTHON] Port Koalas plot unit tests into PySpark 2021-04-14 13:20:16 +09:00
test_frame_plot.py [SPARK-34999][PYTHON] Consolidate PySpark testing utils 2021-04-22 13:07:35 -07:00
test_frame_plot_matplotlib.py [SPARK-34999][PYTHON] Consolidate PySpark testing utils 2021-04-22 13:07:35 -07:00
test_frame_plot_plotly.py [SPARK-34999][PYTHON] Consolidate PySpark testing utils 2021-04-22 13:07:35 -07:00
test_series_plot.py [SPARK-34999][PYTHON] Consolidate PySpark testing utils 2021-04-22 13:07:35 -07:00
test_series_plot_matplotlib.py [SPARK-34999][PYTHON] Consolidate PySpark testing utils 2021-04-22 13:07:35 -07:00
test_series_plot_plotly.py [SPARK-34999][PYTHON] Consolidate PySpark testing utils 2021-04-22 13:07:35 -07:00