Python program to create Pandas series using NumPy arrays.

import numpy as np
import pandas as pd

x = np.array([1, 2, 3, 4, 5])
y = np.array([“a”, “b”, “c”, “d”, “e”])

series = pd.Series(data = x, index = y)

print(series)

a      1
b      2
c      3
d      4
e      5
dtype: int64

P