pyarrow.py 541 B

123456789101112131415161718
  1. """ support pyarrow compatibility across versions """
  2. from pandas.util.version import Version
  3. try:
  4. import pyarrow as pa
  5. _pa_version = pa.__version__
  6. _palv = Version(_pa_version)
  7. pa_version_under1p0 = _palv < Version("1.0.0")
  8. pa_version_under2p0 = _palv < Version("2.0.0")
  9. pa_version_under3p0 = _palv < Version("3.0.0")
  10. pa_version_under4p0 = _palv < Version("4.0.0")
  11. except ImportError:
  12. pa_version_under1p0 = True
  13. pa_version_under2p0 = True
  14. pa_version_under3p0 = True
  15. pa_version_under4p0 = True