text_html_output_1.png
import pandas as pd

groceries = pd.Series(data=[20, 6, 'Yes', 'No'], index=['eggs', 'apples', 'milk', 'bread'])
groceries

print('The data in Groceries is:', groceries.values)
print('The index of Groceries is:', groceries.index)