Skip to content

Commit

Permalink
Update is_platform_arm() to detect 32-bit arm and other variants (#44225
Browse files Browse the repository at this point in the history
)
  • Loading branch information
thesamesam committed Oct 29, 2021
1 parent 1e88197 commit b0992ee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pandas/compat/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ def is_platform_arm() -> bool:
bool
True if the running platform uses ARM architecture.
"""
return platform.machine() in ("arm64", "aarch64")
return platform.machine() in ("arm64", "aarch64") or platform.machine().startswith(
"armv"
)


def import_lzma():
Expand Down

0 comments on commit b0992ee

Please sign in to comment.