Skip to content

Commit 25c74d0

Browse files
itholicHyukjinKwon
authored andcommitted
[SPARK-45635][PYTHON][TESTS] Cleanup unused import for PySpark testing
### What changes were proposed in this pull request? This PR proposes to cleanup unused import for PySpark testing. ### Why are the changes needed? To optimize PySpark testing. ### Does this PR introduce _any_ user-facing change? No, it's test-only. ### How was this patch tested? The existing CI should pass. ### Was this patch authored or co-authored using generative AI tooling? No. Closes #43489 from itholic/SPARK-45635. Authored-by: Haejoon Lee <[email protected]> Signed-off-by: Hyukjin Kwon <[email protected]>
1 parent dcbe275 commit 25c74d0

18 files changed

+5
-43
lines changed

python/pyspark/pandas/tests/computation/test_corrwith.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
import unittest
1818

1919
import numpy as np
20-
import pandas as pd
2120

2221
from pyspark import pandas as ps
2322
from pyspark.testing.pandasutils import ComparisonTestBase

python/pyspark/pandas/tests/data_type_ops/test_num_arithmetic.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
# limitations under the License.
1616
#
1717

18-
import datetime
1918
import unittest
2019

2120
import pandas as pd

python/pyspark/pandas/tests/data_type_ops/testing_utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
import pandas as pd
2323

2424
import pyspark.pandas as ps
25-
from pyspark.pandas.typedef import extension_dtypes
2625
from pyspark.pandas.typedef.typehints import (
2726
extension_dtypes_available,
2827
extension_float_dtypes_available,

python/pyspark/pandas/tests/frame/test_constructor.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222

2323
from pyspark import pandas as ps
2424
from pyspark.pandas.typedef.typehints import (
25-
extension_dtypes,
2625
extension_dtypes_available,
2726
extension_float_dtypes_available,
2827
extension_object_dtypes_available,

python/pyspark/pandas/tests/groupby/test_groupby.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
import pandas as pd
2323

2424
from pyspark import pandas as ps
25-
from pyspark.pandas.exceptions import PandasNotImplementedError, DataError
25+
from pyspark.pandas.exceptions import PandasNotImplementedError
2626
from pyspark.pandas.missing.groupby import (
2727
MissingPandasLikeDataFrameGroupBy,
2828
MissingPandasLikeSeriesGroupBy,

python/pyspark/pandas/tests/indexes/test_base_slow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import pandas as pd
2121

2222
import pyspark.pandas as ps
23-
from pyspark.testing.pandasutils import ComparisonTestBase, TestUtils, SPARK_CONF_ARROW_ENABLED
23+
from pyspark.testing.pandasutils import ComparisonTestBase, TestUtils
2424

2525

2626
class IndexesSlowTestsMixin:

python/pyspark/pandas/tests/indexes/test_datetime_property.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
# limitations under the License.
1616
#
1717

18-
import datetime
1918
import unittest
2019

2120
import numpy as np

python/pyspark/pandas/tests/series/test_as_type.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
from pyspark.testing.pandasutils import ComparisonTestBase
2424
from pyspark.testing.sqlutils import SQLTestUtils
2525
from pyspark.pandas.typedef.typehints import (
26-
extension_dtypes,
2726
extension_dtypes_available,
2827
extension_float_dtypes_available,
2928
extension_object_dtypes_available,

python/pyspark/pandas/tests/series/test_cumulative.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
#
1717
import unittest
1818

19-
import numpy as np
2019
import pandas as pd
2120

2221
from pyspark import pandas as ps

python/pyspark/pandas/tests/series/test_series.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,13 @@
2626

2727
from pyspark import pandas as ps
2828
from pyspark.testing.pandasutils import (
29-
have_tabulate,
3029
PandasOnSparkTestCase,
3130
SPARK_CONF_ARROW_ENABLED,
32-
tabulate_requirement_message,
3331
)
3432
from pyspark.testing.sqlutils import SQLTestUtils
3533
from pyspark.pandas.exceptions import PandasNotImplementedError
3634
from pyspark.pandas.missing.series import MissingPandasLikeSeries
37-
from pyspark.pandas.typedef.typehints import (
38-
extension_dtypes,
39-
extension_dtypes_available,
40-
extension_float_dtypes_available,
41-
extension_object_dtypes_available,
42-
)
35+
from pyspark.pandas.typedef.typehints import extension_object_dtypes_available
4336

4437

4538
class SeriesTestsMixin:

0 commit comments

Comments
 (0)