查看二维数组df中姓名为“张三”,柜台为“食品”数据的命令是( )。
A、df[df['姓名']=='张三'&df['柜台']=='食品']
B、df[df['姓名']=='张三'|df['柜台']=='食品']
C、df[(df['姓名']=='张三')&(df['柜台']=='食品')]
D、df[(df['姓名']=='张三')|(df['柜台']=='食品')]
发布时间:2024-09-26 01:19:27
A、df[df['姓名']=='张三'&df['柜台']=='食品']
B、df[df['姓名']=='张三'|df['柜台']=='食品']
C、df[(df['姓名']=='张三')&(df['柜台']=='食品')]
D、df[(df['姓名']=='张三')|(df['柜台']=='食品')]