我有一张表 df
a b c 1 x y [x] 2 x z [c,d] 3 x t [e,f,g]
只是想知道如何使用 c 列的长度选择行
such as
df.loc[len(df.c) >1]
我知道这是不对的……正确的应该是什么?
尝试这个:
df[df.c.map(len)>1]