new file: petal-power/code.py
new file: petal-power/inventory.csv Initial set up
This commit is contained in:
parent
ed298a2c05
commit
134952e8ee
13
petal-power/code.py
Normal file
13
petal-power/code.py
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
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)
|
||||||
21
petal-power/inventory.csv
Normal file
21
petal-power/inventory.csv
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
location,product_type,product_description,quantity,price
|
||||||
|
Staten Island,seeds,daisy,4,6.99
|
||||||
|
Staten Island,seeds,calla lily,46,19.99
|
||||||
|
Staten Island,seeds,tomato,85,13.99
|
||||||
|
Staten Island,garden tools,rake,4,13.99
|
||||||
|
Staten Island,garden tools,wheelbarrow,0,89.99
|
||||||
|
Staten Island,garden tools,spade,93,19.99
|
||||||
|
Staten Island,pest_control,insect killer,74,12.99
|
||||||
|
Staten Island,pest_control,weed killer,8,23.99
|
||||||
|
Staten Island,planter,20 inch terracotta planter,0,17.99
|
||||||
|
Staten Island,planter,8 inch plastic planter,53,3.99
|
||||||
|
Brooklyn,seeds,daisy,4,6.99
|
||||||
|
Brooklyn,seeds,calla lily,46,19.99
|
||||||
|
Brooklyn,seeds,tomato,85,13.99
|
||||||
|
Brooklyn,garden tools,rake,4,13.99
|
||||||
|
Brooklyn,garden tools,wheelbarrow,0,89.99
|
||||||
|
Brooklyn,garden tools,spade,93,19.99
|
||||||
|
Brooklyn,pest_control,insect killer,74,12.99
|
||||||
|
Brooklyn,pest_control,weed killer,8,23.99
|
||||||
|
Brooklyn,planter,20 inch terracotta planter,0,17.99
|
||||||
|
Brooklyn,planter,8 inch plastic planter,53,3.99
|
||||||
|
Loading…
Reference in New Issue
Block a user