r/programminghelp

Help with code

I keep getting this error:

for this code:

ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

bestmass = []

for mass in df_sorted:

if best_ms == (array[array > 7.5]).all():

bestmass.append(best_ms)

print(bestmass)

and i don't know what I am doing wrong

reddit.com
u/DrawerEmergency4981 — 6 days ago
▲ 4 r/programminghelp+1 crossposts

How do I disable the default iOS form styling in place of my CSS?

I'm trying to customize some form elements (input, button, select, etc.) with CSS to apply a glassmorphism effect, although it appears that on iOS a white background is slid under it which makes all the form elements unreadable. Here is what I have tried:

* {
  font-family: monospace;

  /* iOS fixes */
  -webkit-appearance: none;
  color-scheme: dark;
}

#lookup, input, select, button, textarea, input.text, input[type="text"], input[type="button"], input[type="submit"] { /* glassmorphism effect */
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;

  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

I have already tried applying webkit-appearance, color-scheme, and targeting more form elements to fix it but it just doesn't work. Any ideas?

u/cool_kase — 11 days ago