text_plain_output_1.png
import pandas as pd

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

print('Original Grocery List:\n', groceries)
print()
print('We remove apples (out of place):\n', groceries.drop('apples'))
print()
print('Grocery List after removing apples out of place:\n', groceries)