I wish to transform every column in a dataset so its entries are between 0 and 1 based on the min/max of a column. I get the min/max of each column with df.minmax(col_names)
and then want to find the column width col_width = col_max - col_min
. With this I wish to transform the data df = (df - col_min)/col_width
.
How can I perform this opperation so that every entry is calcualted based on the column in belongs to?