Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > de.comp.lang.python > #5495
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | eilfh <eilfh156@posteo.de> |
| Newsgroups | de.comp.lang.python |
| Subject | Re: [Python-de] Anfaengerfrage: Dataframe - Zeilenmittel - Spaltenmittel |
| Date | Wed, 19 Jun 2019 21:26:49 +0200 |
| Organization | eilfh |
| Lines | 42 |
| Message-ID | <mailman.154.1560972420.21674.python-de@python.org> (permalink) |
| References | <1825444.o0KX4FVeTt@host> <2735687.t9uVyT51e0@host> <9390763f-1e2a-fb62-50ed-6b776764aec9@goebel-consult.de> <8217725.EGQyf2vfZd@host> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset="iso-8859-1" |
| Content-Transfer-Encoding | quoted-printable |
| X-Trace | news.uni-berlin.de MkGG3QLjdIKie1H8Y/PjOggxLUwZSa09wc53/Rfp2Wiw== |
| Return-Path | <eilfh156@posteo.de> |
| X-Original-To | python-de@python.org |
| Delivered-To | python-de@mail.python.org |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1560972418; bh=qeuygq04HgIlznruPBXHAAqij/doRmm6tMHysAVIFw0=; h=From:To:Subject:Date:From; b=nTSZUzCYxzKPJfDrVmb1ESeK6eJVutHMqGN8Vg2CqiNx9rCdmxfskMW/rwtJEQ0Ib 85ts/Z2tn14RrUnTy8hvZJwoU4Ya0ItYVZawwAEnGsrUMQBr54EbZixU0cnjQIJIyQ JWq4CTfo3Czrw0K9H73Gx2mzZsFElpGx6HCxvfM13mWunFyB9ADo9ZPiIg9yIAd6+K FN7DBOnzwz2pp9mHyeMPUjsXHfR4XPyjbHNK7Xg3oyTMx9BqcAspmGnRy1fREtt12F CSRnZG27BtXxZPhGxblz5N191C14i3w14szTJdjpXkW+qPCSDAr7MptQvvB3ag3zdp 5EZ/bGO8+R3RA== |
| In-Reply-To | <9390763f-1e2a-fb62-50ed-6b776764aec9@goebel-consult.de> |
| X-BeenThere | python-de@python.org |
| X-Mailman-Version | 2.1.29 |
| Precedence | list |
| List-Id | Die Deutsche Python Mailingliste <python-de.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-de>, <mailto:python-de-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-de/> |
| List-Post | <mailto:python-de@python.org> |
| List-Help | <mailto:python-de-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-de>, <mailto:python-de-request@python.org?subject=subscribe> |
| X-Mailman-Original-Message-ID | <8217725.EGQyf2vfZd@host> |
| X-Mailman-Original-References | <1825444.o0KX4FVeTt@host> <2735687.t9uVyT51e0@host> <9390763f-1e2a-fb62-50ed-6b776764aec9@goebel-consult.de> |
| Xref | csiph.com de.comp.lang.python:5495 |
Show key headers only | View raw
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 de.comp.lang.python | Previous | Next | Find similar
Re: [Python-de] Anfaengerfrage: Dataframe - Zeilenmittel - Spaltenmittel eilfh <eilfh156@posteo.de> - 2019-06-19 21:26 +0200
csiph-web