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
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c7687a264ed281a7b624c2cc72a7b44e41f0b5e102fbca03f212f2a7f9546ec
|
|
| MD5 |
2a989d1da19cbb54b6357db8c12b99c0
|
|
| BLAKE2b-256 |
fc0cf902c8a8470854ff8729eb69783d748dcdda094f6bf5979ac54908a663bd
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6727ef62412362289b8c1327ec7ce9c7aa55a3218442b67d6012f1fcdfa3ec93
|
|
| MD5 |
1287446a1f6b9ce277740a38b80744cb
|
|
| BLAKE2b-256 |
f373d4b5d8e376c22a5b721159d1fb35fd94dc1628836c885932c445cff1652a
|