Skip to main content

Convert messy basketball height strings into inches; clamp outside 5–8 ft to NaN.

Project description

ht-fix

Convert messy basketball heights into inches with clamping.

from ht_fix import fix_height
fix_height("6-7")                 # 79.0
fix_height(["4-Jun", "200 cm"])   # [76.0, 78.740157...]
df["ht_in"] = fix_height(df["ht"])  # clamps outside 5–8 ft to NaN

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ht_fix-0.1.6.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ht_fix-0.1.6-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file ht_fix-0.1.6.tar.gz.

File metadata

  • Download URL: ht_fix-0.1.6.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.5 Windows/11

File hashes

Hashes for ht_fix-0.1.6.tar.gz
Algorithm Hash digest
SHA256 9c7687a264ed281a7b624c2cc72a7b44e41f0b5e102fbca03f212f2a7f9546ec
MD5 2a989d1da19cbb54b6357db8c12b99c0
BLAKE2b-256 fc0cf902c8a8470854ff8729eb69783d748dcdda094f6bf5979ac54908a663bd

See more details on using hashes here.

File details

Details for the file ht_fix-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: ht_fix-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.5 Windows/11

File hashes

Hashes for ht_fix-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 6727ef62412362289b8c1327ec7ce9c7aa55a3218442b67d6012f1fcdfa3ec93
MD5 1287446a1f6b9ce277740a38b80744cb
BLAKE2b-256 f373d4b5d8e376c22a5b721159d1fb35fd94dc1628836c885932c445cff1652a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page