Let us see how to add a Pandas series to another series in Python. This can be done using 2 ways :
Method 1 : Using the append() function. It appends one series object at the end of another series object and returns an appended series.
# importing the module import pandas as pd # create 2 series objects series_1 = pd.Series([2, 4, 6, 8]) series_2 = pd.Series([10, 12, 14, 16]) # adding series_2 to series_1 using the append() function series_1 = series_1.append(series_2, ignore_index = True) # displaying series_1 print(series_1) |
Output :

Method 2 : Using the concat() function. It takes a list of series objects that are to be concatenated as an argument and returns a concatenated series.
# importing the module import pandas as pd # create 2 series objects series_1 = pd.Series([2, 4, 6, 8]) series_2 = pd.Series([10, 12, 14, 16]) # adding series_2 to series_1 using the concat() function series_1 = pd.concat([series_1, series_2]) # displaying series_1 print(series_1) |
Output :

Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course.
Recommended Posts:
- Convert given Pandas series into a dataframe with its index as another column on the dataframe
- Python | Pandas Series.add()
- Add, subtract, multiple and divide two Pandas Series
- Python | Add one string to another
- How to add one polynomial to another using NumPy in Python?
- Python | Pandas series.cumprod() to find Cumulative product of a Series
- Python | Pandas Series.str.replace() to replace text in a series
- Python | Pandas Series.astype() to convert Data type of series
- Python | Pandas Series.cumsum() to find cumulative sum of a Series
- Python | Pandas series.cummax() to find Cumulative maximum of a series
- Python | Pandas Series.cummin() to find cumulative minimum of a series
- Python | Pandas Series.nonzero() to get Index of all non zero values in a series
- Python | Pandas Series.mad() to calculate Mean Absolute Deviation of a Series
- Convert a series of date strings to a time series in Pandas Dataframe
- Convert Series of lists to one Series in Pandas
- Converting Series of lists to one Series in Pandas
- Pandas - Get the elements of series that are not present in other series
- Add a new column in Pandas Data Frame Using a Dictionary
- Python | Pandas dataframe.add()
- Add a row at top in pandas DataFrame
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.

