Modified log scale (deal with negative numbers)

PHOTO EMBED

Thu Dec 02 2021 11:45:37 GMT+0000 (Coordinated Universal Time)

Saved by @thejoe01 #python #scaling #data

def log_scale(x):
    C = 1 / np.log(10)
    return np.sign(x) * np.log10(1 + np.abs(x / C))
content_copyCOPY