Re: help: pandas and 2d table

Liste des GroupesRevenir à cl python 
Sujet : Re: help: pandas and 2d table
De : nospam (at) *nospam* please.ty (jak)
Groupes : comp.lang.python
Date : 13. Apr 2024, 23:35:57
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <uvetru$375r4$1@dont-email.me>
References : 1 2 3 4 5 6 7
User-Agent : Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0 SeaMonkey/2.53.18.2
Stefan Ram ha scritto:
df = df.where( df == 'zz' ).stack().reset_index()
result ={ 'zz': list( zip( df.iloc[ :, 0 ], df.iloc[ :, 1 ]))}
Since I don't know Pandas, I will need a month at least to understand
these 2 lines of code. Thanks again.

Date Sujet#  Auteur
12 Apr 24 * help: pandas and 2d table10jak
12 Apr 24 `* Re: help: pandas and 2d table9Stefan Ram
13 Apr 24  `* Re: help: pandas and 2d table8jak
13 Apr 24   +- Re: help: pandas and 2d table1Mats Wichmann
13 Apr 24   `* Re: help: pandas and 2d table6Tim Williams
13 Apr 24    `* Re: help: pandas and 2d table5Stefan Ram
13 Apr 24     `* Re: help: pandas and 2d table4jak
14 Apr 24      `* Re: help: pandas and 2d table3Stefan Ram
15 Apr 24       +- Re: help: pandas and 2d table1jak
19 May 24       `- Re: help: pandas and 2d table1Stefan Ram

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal