# import necessary libraries 
import pandas as pd
  
# create a dictionary
my_dict = {'a': 1, 'b': 2, 'c': 3, 'd': 4, 'e': 5}
  
# create a custom ordered index of the same size of dictionary
my_index = ['b', 'e', 'd', 'c', 'a']
  
# create series using constructor and specify 'index' argument
my_series = pd.Series(my_dict, index = my_index)
  
# print the series
print(my_series)