Skip to content

Commit b0992ee

Browse files
authored
Update is_platform_arm() to detect 32-bit arm and other variants (#44225)
1 parent 1e88197 commit b0992ee

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pandas/compat/__init__.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,9 @@ def is_platform_arm() -> bool:
9999
bool
100100
True if the running platform uses ARM architecture.
101101
"""
102-
return platform.machine() in ("arm64", "aarch64")
102+
return platform.machine() in ("arm64", "aarch64") or platform.machine().startswith(
103+
"armv"
104+
)
103105

104106

105107
def import_lzma():

0 commit comments

Comments
 (0)