Machine Learning, Towards Data Science, AI, Data Science, Data Preprocessing.
without applying any scaling method. import operator cols_max_vals = {} cols_max_row_names = {} for col in list(pivot_t): row_name = pivot_t[col].idxmax() cell_val = pivot_t[col].max() cols_max_vals[col] = cell_val cols_max_row_names[col] = row_name sorted_cols_max_vals =