python索引相关 pandas索引numpy索引 pandas索引 利用pandas索引指定数据 # 索引白天的数据 day = footprint[(footprint['时']>= 8) & (footprint['时']< 20)] day.reset_index(drop=True,inplace=True) # 重置索引 numpy索引 np.argwhere(np.array(FFP['xr']) == np.array(FFP['xr']).min()) # np.array(FFP['xr']).min()为具体数值,返回的是索引位置 # array([[ 0, 654]], dtype=int64)