This is an automated email from the ASF dual-hosted git repository.
gurwls223 pushed a commit to branch branch-3.2
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/branch-3.2 by this push:
new 1406d0c [SPARK-38416][PYTHON][TESTS] Change day to month
1406d0c is described below
commit 1406d0cc744ede2a2beb58f22040d0e05582e776
Author: bjornjorgensen <[email protected]>
AuthorDate: Mon Mar 7 09:00:06 2022 +0900
[SPARK-38416][PYTHON][TESTS] Change day to month
### What changes were proposed in this pull request?
Right now we have two functions that are testing the same thing.
### Why are the changes needed?
To test both day and mount
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
Got the green light.
Closes #35741 from bjornjorgensen/change-day-to-month.
Authored-by: bjornjorgensen <[email protected]>
Signed-off-by: Hyukjin Kwon <[email protected]>
(cherry picked from commit b6516174a84d849bd620417dca9e0a81e0d3b5dc)
Signed-off-by: Hyukjin Kwon <[email protected]>
---
python/pyspark/pandas/tests/indexes/test_datetime.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/python/pyspark/pandas/tests/indexes/test_datetime.py
b/python/pyspark/pandas/tests/indexes/test_datetime.py
index e3bf14e..85a2b21 100644
--- a/python/pyspark/pandas/tests/indexes/test_datetime.py
+++ b/python/pyspark/pandas/tests/indexes/test_datetime.py
@@ -120,7 +120,7 @@ class DatetimeIndexTest(PandasOnSparkTestCase, TestUtils):
def test_month_name(self):
for psidx, pidx in self.idx_pairs:
- self.assert_eq(psidx.day_name(), pidx.day_name())
+ self.assert_eq(psidx.month_name(), pidx.month_name())
def test_normalize(self):
for psidx, pidx in self.idx_pairs:
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]