codecademy-examples/petal-power/code.py
Jonathan Ervine 134952e8ee new file: petal-power/code.py
new file:   petal-power/inventory.csv
Initial set up
2020-03-12 17:02:55 +08:00

14 lines
332 B
Python

import pandas as pd
inventory = pd.read_csv('test.csv', delimiter=',')
print(inventory)
print(inventory.head(10))
staten_island = inventory.head(10)
product_request = staten_island.product_description
print(product_request)
seed_request = pd. (lambda x: x.location == 'Brooklyn' & x.product_type == 'seeds')
print(seed_request)