Page 1 of 1

Verkettung einer Reihe von Reihen in Pandas

Posted: 21 Aug 2025, 05:01
by Anonymous
Ich habe einen Pandas -Datenfreame wie diesen: < /p>

Code: Select all

    c1      c2      c3      c4
0   1       2       3       0
1   10      20      30      1
2   100     200     300     2
3   1       2       3       0
4   10      20      30      1
5   100     200     300     2
< /code>
Ich möchte mich darin verwandeln: < /p>
    c1  c2  c3  c4  c5  c6  c7  c8  c9
0   1   2   3   10  20  30  100 200 300
1   1   2   3   10  20  30  100 200 300
Die Idee besteht>