Oct-18-2018, 07:48 PM
Below is my CSV file
then I have to create 10 different Unique ID for Territory D00060 and 10 different Unique ID for Territory D00061.
Here I read my csv file in pandas like
Now I will have to create 10 records means 10 unique ID using UUID for each territory having customers <=50? I am very new to python help me out!!
Territory NoOfCustomer D00060 10 D00061 20 D00065 70 D00067 90I have to create a Unique Id based on Number of NoOfCustomer like If NoOfCustomer <=50
then I have to create 10 different Unique ID for Territory D00060 and 10 different Unique ID for Territory D00061.
Here I read my csv file in pandas like
csv_file = 'cust_valid.csv' df=pd.read_csv(csv_file,delimiter="|")Filtered having customers <= 50
low_dense = df['NoOfCustomer'] <=50And then iterted low_dense like
for idx, item in df[low_dense].iterrows():???
Now I will have to create 10 records means 10 unique ID using UUID for each territory having customers <=50? I am very new to python help me out!!
