Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

iterating over the two ranges simultaneously

from .models import userData as us
import pandas as pd

def enterData(request):
    data=pd.read_csv(r"abc.csv",encoding='ISO-8859-1')
    username=data['userName']
    address=data['address']
    for a, b in zip(username, address):
        db=ud(userName=a,Address=a)
        db.save()
 
PREVIOUS NEXT
Tagged: #iterating #ranges #simultaneously
ADD COMMENT
Topic
Name
1+6 =