Coding Global Background
Coding Global

Python syntax question

Archiviert 3 years ago
13 Nachrichten
1 Mitglieder
Erstellt 3 years ago
Aktualisiert 3 years ago
In Discord öffnen
M
mafrankuloo
data.plot(y = ["tavg", "tmin", "tmax", "prcp"])

its callin an api but i wanna make some dynamic search, than i try those things;

y = ["tavg", "tmin", "tmax", "prcp"]
data.plot(y)
data.plot(y = [y])
data.plot((f"y = {y}"))

but all of them functioniert gar nicht (value errors syntax errors etc). Anyone has an idea?

Antworten (13)