Aug-01-2019, 12:33 AM
You got this error because
It is unclear why do you introduce
If you are tyring to select rows where the maximum value is located, you can do it as follows:
v
(or maxVal
) in line #39 is a vector or a matrix. It is unclear why do you introduce
data
dict (line # 36). You can do everything using pandas. If you are tyring to select rows where the maximum value is located, you can do it as follows:
df[(df == df.values.max()).any(axis=1)]