Dataframe with two groups of cols.

Paulo da Silva p_s_d_a_s_i_l_v_a_ns at netcabo.pt
Thu Jun 13 23:56:22 EDT 2019


Hi!

How do I create a pandas dataframe with two (or more) groups of cols.?

Ex.:

G1       G2
C1 C2 C3 C1 C2 C3
Rows of values ...

I then should be able to access for example
df['G2']['C3'][<some rows selection>]


Thanks.



More information about the Python-list mailing list