Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion pandas/compat/pyarrow.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@
pa_version_under19p0 = _palv < Version("19.0.0")
pa_version_under20p0 = _palv < Version("20.0.0")
pa_version_under21p0 = _palv < Version("21.0.0")
pa_version_under22p0 = _palv < Version("22.0.0")
HAS_PYARROW = _palv >= Version(PYARROW_MIN_VERSION)
except ImportError:
except (ImportError, AttributeError):
pa_version_under14p0 = True
pa_version_under14p1 = True
pa_version_under15p0 = True
Expand All @@ -29,4 +30,5 @@
pa_version_under19p0 = True
pa_version_under20p0 = True
pa_version_under21p0 = True
pa_version_under22p0 = True
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if we're not using this anywhere, why add it?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You had all the other versions, I admittedly only suggested it for the sake of completeness without thinking too much. Now I had a look at https://arrow.apache.org/release/22.0.0.html to find a reason :-) Maybe to allow CSV headers without quotes?

HAS_PYARROW = False
Loading