Skip to content

Commit

Permalink
[SPARK-36711][PYTHON][FOLLOW-UP] Skip docs tests having MultiIndex.dt…
Browse files Browse the repository at this point in the history
…ypes

### What changes were proposed in this pull request?

This PR is a minor followup of #34176 to skip docs test which use ```pd.MultiIndex.dtypes``` which is only supported in pandas version 1.3+.

### Why are the changes needed?
Skip docs test which use ```pd.MultiIndex.dtypes``` which is only supported in pandas version 1.3+.

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

### How was this patch tested?
Manual test

Closes #34207 from dchvn/SPARK-36711-FU.

Authored-by: dch nguyen <dgd_contributor@viettel.com.vn>
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
  • Loading branch information
dchvn authored and HyukjinKwon committed Oct 7, 2021
1 parent b8e7e0d commit 148dcd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/pyspark/pandas/typedef/typehints.py
Expand Up @@ -720,13 +720,13 @@ def create_tuple_for_frame_type(params: Any) -> object:
>>> pdf = pd.DataFrame({'a': range(3)}, index=idx)
>>> ps.DataFrame[[int, int], [int, int]] # doctest: +ELLIPSIS
typing.Tuple[...IndexNameType, ...IndexNameType, ...NameType, ...NameType]
>>> ps.DataFrame[pdf.index.dtypes, pdf.dtypes] # doctest: +ELLIPSIS
>>> ps.DataFrame[pdf.index.dtypes, pdf.dtypes] # doctest: +ELLIPSIS, +SKIP
typing.Tuple[...IndexNameType, ...NameType]
>>> ps.DataFrame[[("index-1", int), ("index-2", int)], [("id", int), ("A", int)]]
... # doctest: +ELLIPSIS
typing.Tuple[...IndexNameType, ...IndexNameType, ...NameType, ...NameType]
>>> ps.DataFrame[zip(pdf.index.names, pdf.index.dtypes), zip(pdf.columns, pdf.dtypes)]
... # doctest: +ELLIPSIS
... # doctest: +ELLIPSIS, +SKIP
typing.Tuple[...IndexNameType, ...NameType]
"""
return Tuple[_to_type_holders(params)]
Expand Down

0 comments on commit 148dcd9

Please sign in to comment.