creating a series from a dataframe code example Example: pandas series create import pandas as pd series = pd.Series()