Skip to content

Commit acc1be1

Browse files
committed
Workaround pandas version string issue in doc generation
1 parent d411b28 commit acc1be1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

python/pyspark/pandas/supported_api_gen.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,9 @@ def _check_pandas_version() -> None:
108108
"""
109109
Check if the installed pandas version matches the expected version.
110110
"""
111-
if LooseVersion(pd.__version__) != LooseVersion(PANDAS_LATEST_VERSION):
111+
# Work around pandas version string issue,
112+
# see https://github.com/pandas-dev/pandas/issues/61579.
113+
if LooseVersion(pd.__version__.split('+')[0]) != LooseVersion(PANDAS_LATEST_VERSION):
112114
msg = (
113115
f"Warning: pandas {PANDAS_LATEST_VERSION} is required; your version is {pd.__version__}"
114116
)

0 commit comments

Comments
 (0)