Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > de.comp.lang.python > #5495 > unrolled thread
| Started by | eilfh <eilfh156@posteo.de> |
|---|---|
| First post | 2019-06-19 21:26 +0200 |
| Last post | 2019-06-19 21:26 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to de.comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [Python-de] Anfaengerfrage: Dataframe - Zeilenmittel - Spaltenmittel eilfh <eilfh156@posteo.de> - 2019-06-19 21:26 +0200
| From | eilfh <eilfh156@posteo.de> |
|---|---|
| Date | 2019-06-19 21:26 +0200 |
| Subject | Re: [Python-de] Anfaengerfrage: Dataframe - Zeilenmittel - Spaltenmittel |
| Message-ID | <mailman.154.1560972420.21674.python-de@python.org> |
Am Mittwoch, 19. Juni 2019, 14:08:33 CEST schrieb Hartmut Goebel: > immer "i-1" verwendest, kannst Du hier > "range(spalten_anzahl)" verwenden. Das läuft von 0 und bis Danke für eure schnellen Antworten @ Hartmut: klappt tatsächlich, nur ein Verständnisproblem meinerseits : Indizierung fängt bei 0 an (= das sind aber die Spalten-/bzw. die Zeilenköpfe) und dann aber i - 1, bzw. j - 1 --> 0 - 1 --> -1 ??? aber Ergebnis stimmt (für dich sicher trivial!) (irgendwie denk man wohl -- auch nach vielen Jahren -- immer noch in Turbo-Pascal-Strukturen) @Peter: df1 = df.copy() habe ich dankend übernommen df.as_matrix() FutureWarning: Method .as_matrix, das könnte ich aktualisieren (Use .values instead) aber: meine DataFrames sind nicht quadratisch (vermutl. deshalb scheitert das) (hier im Testbsp.: 5 Spalten, 30 Zeilen) Abbruch, Fehlermitteilung: ValueError: Shape of passed values is (5, 30), indices imply (30, 30) Nochmal vielen Dank für Eure Antworten, hat mir gut weitergeholfen. Frank
Back to top | Article view | de.comp.lang.python
csiph-web