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.5.tar.gz
(2.1 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.5.tar.gz.
File metadata
- Download URL: ht_fix-0.1.5.tar.gz
- Upload date:
- Size: 2.1 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 |
6565873188f1812993133964fb226f7b5d6ef2fe8fdf1058af6eaa57a8d96fab
|
|
| MD5 |
70b36be7802388fec2dcb1995afcf57b
|
|
| BLAKE2b-256 |
020119558e60e2a09e1a31aeffbafdbab7188b3d53cf4d7da7f946be9bc3e951
|
File details
Details for the file ht_fix-0.1.5-py3-none-any.whl.
File metadata
- Download URL: ht_fix-0.1.5-py3-none-any.whl
- Upload date:
- Size: 2.6 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 |
44dd70cd6a0031a807e1ae7234283781244dd6e7eec39fac94922ce159cb12a4
|
|
| MD5 |
f1f834ddbf0b8f5b97a1c41ffefbe628
|
|
| BLAKE2b-256 |
f9e32da6470d30f0863e123f7f68906f717c41e522e92270778dc78bf1ba2968
|