lschlessinger's picture
refactor: split out core logic from app
0e1f732
raw
history blame
293 Bytes
def snake_case_to_human_readable(s: str) -> str:
return " ".join(s.capitalize().split("_"))
def get_max_abs_int(int_csv_str: str) -> int:
"""Get the max absolute value int from an int CSV."""
ints = [abs(int(i.strip())) for i in int_csv_str.split(',') if i]
return max(ints)