Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > de.comp.lang.python > #5499
| From | Peter Otten <__peter__@web.de> |
|---|---|
| Newsgroups | de.comp.lang.python |
| Subject | Re: [Python-de] Anfaengerfrage: Dataframe - Zeilenmittel - Spaltenmittel |
| Date | 2019-06-20 23:55 +0200 |
| Organization | None |
| Message-ID | <mailman.9.1561067730.1072.python-de@python.org> (permalink) |
| References | <1825444.o0KX4FVeTt@host> <2233175.VqSBi401Pp@palindrom> <1732706.jVTfYWmTT1@host> <1749997.SP6D3cdL4O@palindrom> |
eilfh wrote: >> Produziert das bei dir ein Traceback (wenn ja, was genau)? > > ja: > > Traceback (most recent call last): > > File "<ipython-input-2-305cfde93e0f>", line 3, in <module> > df1 = pd.DataFrame(b, columns=df) ... > ValueError: Shape of passed values is (3, 4), indices imply (4, 4) Ersetze columns=df in der obigen Zeile mal durch columns=df.columns, also df1 = pd.DataFrame(b, columns=df.columns)
Back to de.comp.lang.python | Previous | Next | Find similar
Re: [Python-de] Anfaengerfrage: Dataframe - Zeilenmittel - Spaltenmittel Peter Otten <__peter__@web.de> - 2019-06-20 23:55 +0200
csiph-web