To create this Series, first we need to import numpy to create the ndarray.
Then we create the Series with the given indices.
Here is the correct Python program:
import numpy as np
import pandas as pd
data = np.array([10, 20, 30, 40, 50])
index_labels = ['A', 'B', 'C', 'D', 'E']
series = pd.Series(data, index=index_labels)
print(series)
Explanation:
1. We import numpy for creating the ndarray.
2. We create an ndarray with the numbers 10, 20, 30, 40, 50.
3. We define a list of labels for the index.
4. We pass the ndarray and the index list to pd.Series() to create the labelled Series.
5. Finally, we print the Series to display it in the desired format.
This produces the output exactly as given in the question.