bigframes.geopandas.GeoSeries.argmin#

GeoSeries.argmin()int#

Return int position of the smallest value in the Series.

If the minimum is achieved in multiple locations, the first row positionis returned.

Examples:

Consider dataset containing cereal calories.

>>>s=bpd.Series({'Corn Flakes':100.0,'Almond Delight':110.0,...'Cinnamon Toast Crunch':120.0,'Cocoa Puff':110.0})>>>sCorn Flakes              100.0Almond Delight           110.0Cinnamon Toast Crunch    120.0Cocoa Puff               110.0dtype: Float64
>>>s.argmax()np.int64(2)
>>>s.argmin()np.int64(0)

The maximum cereal calories is the third element and the minimum cerealcalories is the first element, since series is zero-indexed.

Returns:

Row position of the minimum value.

Return type:

int

On this page

This Page