import numpy as np df["해당칼럼"] = np.log1p(df["해당칼럼"] ) labels = [ 5, 4, 3, 2, 1] bins = pd.cut(df["해당칼럼"] , 5, labels = labels) # 5등급으로 나누었다. df["해당칼럼"] = bins df