Commoditiy Value Changer Data Extraction code Updated

parent 84329f44
...@@ -157,4 +157,16 @@ class Summarizer_: ...@@ -157,4 +157,16 @@ class Summarizer_:
csvFile, sep=",", encoding='cp1252', usecols=[0, 2], header=None) csvFile, sep=",", encoding='cp1252', usecols=[0, 2], header=None)
c = 2 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