Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > de.comp.lang.python > #5498
| From | eilfh <eilfh156@posteo.de> |
|---|---|
| Newsgroups | de.comp.lang.python |
| Subject | Re: [Python-de] Anfaengerfrage: Dataframe - Zeilenmittel - Spaltenmittel |
| Date | 2019-06-20 21:30 +0200 |
| Organization | eilfh |
| Message-ID | <mailman.8.1561059032.1072.python-de@python.org> (permalink) |
| References | <1825444.o0KX4FVeTt@host> <8217725.EGQyf2vfZd@host> <2233175.VqSBi401Pp@palindrom> <1732706.jVTfYWmTT1@host> |
Hallo, Peter
hallo, Hartmut
vielen Dank für eure Unterstützung
> 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)
File "/usr/lib64/python3.6/site-packages/pandas/core/frame.py", line 379, in
__init__
copy=copy)
File "/usr/lib64/python3.6/site-packages/pandas/core/frame.py", line 536, in
_init_ndarray
return create_block_manager_from_blocks([values], [columns, index])
File "/usr/lib64/python3.6/site-packages/pandas/core/internals.py", line
4866, in create_block_manager_from_blocks
construction_error(tot_items, blocks[0].shape[1:], axes, e)
File "/usr/lib64/python3.6/site-packages/pandas/core/internals.py", line
4843, in construction_error
passed, implied))
ValueError: Shape of passed values is (3, 4), indices imply (4, 4)
Nochmals, Danke
Frank
Back to de.comp.lang.python | Previous | Next | Find similar
Re: [Python-de] Anfaengerfrage: Dataframe - Zeilenmittel - Spaltenmittel eilfh <eilfh156@posteo.de> - 2019-06-20 21:30 +0200
csiph-web