GitHub user ueshin opened a pull request:
https://github.com/apache/spark/pull/20054
[SPARK-22874][PYSPARK][SQL] Modify checking pandas version to use
LooseVersion.
## What changes were proposed in this pull request?
Currently we check pandas version by capturing if `ImportError` for the
specific imports is raised or not but we can compare `LooseVersion` of the
version strings as the same as we're checking pyarrow version.
## How was this patch tested?
Existing tests.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/ueshin/apache-spark issues/SPARK-22874
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/20054.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #20054
----
commit 9f6793664ca1e96e549254de9526921eb5094a8a
Author: Takuya UESHIN <ueshin@...>
Date: 2017-12-22T08:02:58Z
Modify checking pandas version to use LooseVersion.
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]