Commoditiy Value Changer Data Extraction code Edited

parent 7a4da1fb
......@@ -157,16 +157,4 @@ class Summarizer_:
csvFile, sep=",", encoding='cp1252', usecols=[0, 2], header=None)
c = 2
if c == 1:
for index, row in priceData.iterrows():
if 'Rs.' in str(row):
print(row[0], row[3])
Commodity.objects.create(
NAME=row[0], NEWPRICE=row[3], GAZETTE=gnumber)
elif c == 2:
for index, row in priceData.iterrows():
if 'Rs.' in str(row):
print(row[0], row[2])
Commodity.objects.create(
NAME=row[0], NEWPRICE=row[2], GAZETTE=gnumber)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment