find min and max from dataframe column
max_value = column.max()
find min and max from dataframe column
max_value = column.max()
python - extract min and max values per each column name
# show me the column names --> predictors
cols = [x for in df.columns if not in ('resp_var', 'name')]; cols
# extract the min and max values per each predictors
print("{")
for i, name in enumerate(cols):
print(f'"{name}":{{"min":{df[name].min()}, "max":{df[name].max()}}} {"," if i>(len(col)-1) else ""}')
print("}")
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us