bigframes.geopandas.GeoSeries.combine#
- GeoSeries.combine(other,func)→Series#
Combine the Series with a Series or scalar according tofunc.
Combine the Series andother usingfunc to perform elementwiseselection for combined Series.fill_value is assumed when value is missing at some indexfrom one of the two objects being combined.
Examples:
Consider 2 Datasets
s1ands2containinghighest clocked speeds of different birds.>>>importbigframes.pandasasbpd>>>s1=bpd.Series({'falcon':330.0,'eagle':160.0})>>>s1falcon 330.0eagle 160.0dtype: Float64>>>s2=bpd.Series({'falcon':345.0,'eagle':200.0,'duck':30.0})>>>s2falcon 345.0eagle 200.0duck 30.0dtype: Float64
Now, to combine the two datasets and view the highest speedsof the birds across the two datasets
>>>s1.combine(s2,np.maximum)falcon 345.0eagle 200.0duck <NA>dtype: Float64
- Parameters:
other (Series orscalar) – The value(s) to be combined with theSeries.
func (function) – BigFrames DataFrames
remote_functionto apply.Takes two scalars as inputs and returns an element.Also accepts some numpy binary functions.
- Returns:
The result of combining the Series with the other object.
- Return type:
On this page