help: pandas and 2d table

jak nospam at please.ty
Sat Apr 13 17:35:57 EDT 2024


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.


More information about the Python-list mailing list