how to append/insert an item at the beginning of a series?

pandas, python

Solution

There is a `pandas.concat` function...

import pandas as pd
a = pd.Series([2,3,4])
pd.concat([pd.Series([1]), a])

See the Merge, Join, and Concatenate documentation.

Problem

imaging i have a series looks like this: ``` Out[64]: 2 0 3 1 80 1 83 1 84 2 85 2 ``` how can i append an item at the very beginning of this series? the native pandas.Series.append function only appends at the end. thanks a lot

Original source