Series.add
- Series.add(right: Series) Series
Return addition of series and right, element-wise (binary operator add).
Parameters
right: opensearch_py_ml.Series
Returns
opensearch_py_ml.Series
Examples
>>> from tests import OPENSEARCH_TEST_CLIENT
>>> df = oml.DataFrame(OPENSEARCH_TEST_CLIENT, 'ecommerce').head(5) >>> df.taxful_total_price 0 36.98 1 53.98 2 199.98 3 174.98 4 80.98 Name: taxful_total_price, dtype: float64 >>> df.taxful_total_price + 1 0 37.980000 1 54.980000 2 200.979996 3 175.979996 4 81.980003 Name: taxful_total_price, dtype: float64 >>> df.total_quantity 0 2 1 2 2 2 3 2 4 2 Name: total_quantity, dtype: int64 >>> df.taxful_total_price + df.total_quantity 0 38.980000 1 55.980000 2 201.979996 3 176.979996 4 82.980003 dtype: float64 >>> df.customer_first_name + df.customer_last_name 0 EddieUnderwood 1 MaryBailey 2 GwenButler 3 DianeChandler 4 EddieWeber dtype: object >>> "First name: " + df.customer_first_name 0 First name: Eddie 1 First name: Mary 2 First name: Gwen 3 First name: Diane 4 First name: Eddie Name: customer_first_name, dtype: object