I’m new to python and messing with sales info, first thing I need to do is add everything that is more than 0 in Extended price, but after the loop that fn value is 0, which it should be in the millions.
Extended price is float64, also tried looping using
for i in range(len(sales[‘Extended Price’]))…the value returned was 1
sales = pd.read_csv(‘csv-utf8.csv’)
total_sales = 0
for i in np.nditer(len(sales[‘Extended Price’])):
if i > 0:
total_sales += i