File size: 293 Bytes
0e1f732
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
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)