據我了解,pd.loc []用作基於位置的索引器,其格式為:df.loc [index, ... class 是表示column對像中的值的標量。 iris_data.loc[iris_data['class'] == 'versicolor' ...
確定! 回上一頁