Pandas Series: append() function
Concatenate two or more Pandas series
The append() function is used to concatenate two or more Series.
Syntax:
Series.append(self, to_append, ignore_index=False, verify_integrity=False)
Name | Description | Type/Default Value | Required / Optional |
---|---|---|---|
to_append | Series to append with self. | Series or list/tuple of Series | Required |
ignore_index | If True, do not use the index labels. | bool Default Value: False |
Required |
verify_integrity | If True, raise Exception on creating index with duplicates. | bool Default Value: False |
Required |
Returns: Series - Concatenated Series.
Notes:
Iteratively appending to a Series can be more computationally intensive than a single concatenate. A better solution is to append values to a list and then concatenate the list with the original Series all at once.
Example:
Download the Pandas Series Notebooks from here.
Previous: Create a new view of Pandas Series
Next: Replace Pandas series values given in to_replace with value
- New Content published on w3resource:
- HTML-CSS Practical: Exercises, Practice, Solution
- Java Regular Expression: Exercises, Practice, Solution
- Scala Programming Exercises, Practice, Solution
- Python Itertools exercises
- Python Numpy exercises
- Python GeoPy Package exercises
- Python Pandas exercises
- Python nltk exercises
- Python BeautifulSoup exercises
- Form Template
- Composer - PHP Package Manager
- PHPUnit - PHP Testing
- Laravel - PHP Framework
- Angular - JavaScript Framework
- Vue - JavaScript Framework
- Jest - JavaScript Testing Framework