Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > de.comp.lang.python > #5498 > unrolled thread

Re: [Python-de] Anfaengerfrage: Dataframe - Zeilenmittel - Spaltenmittel

Started byeilfh <eilfh156@posteo.de>
First post2019-06-20 21:30 +0200
Last post2019-06-20 21:30 +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.


Contents

  Re: [Python-de] Anfaengerfrage: Dataframe - Zeilenmittel - Spaltenmittel eilfh <eilfh156@posteo.de> - 2019-06-20 21:30 +0200

#5498 — Re: [Python-de] Anfaengerfrage: Dataframe - Zeilenmittel - Spaltenmittel

Fromeilfh <eilfh156@posteo.de>
Date2019-06-20 21:30 +0200
SubjectRe: [Python-de] Anfaengerfrage: Dataframe - Zeilenmittel - Spaltenmittel
Message-ID<mailman.8.1561059032.1072.python-de@python.org>
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

[toc] | [standalone]


Back to top | Article view | de.comp.lang.python


csiph-web