text_plain_output_1.png
import pandas as pd

import pandas as pd

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

fruits = pd.Series(data=[10, 6, 3], index=['apples', 'oranges', 'bananas'])
fruits

import pandas as pd
items = {'Bob': pd.Series(data=[245, 25, 55], index=['bike', 'pants', 'watch']), 'Alice': pd.Series(data=[40, 110, 500, 45], index=['book', 'glasses', 'bike', 'pants'])}

shopping_carts = pd.DataFrame(items)
shopping_carts

data = {'Bob': pd.Series([245, 25, 55]), 'Alice': pd.Series([40, 110, 500, 45])}
df = pd.DataFrame(data)
df