Not able to iterete properly over multiple dataframes using nested for-if loop | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Not able to iterete properly over multiple dataframes using nested for-if loop

Working SIngle Dataframe assignment- x=Camp_Name_Count[1] df_Camp_Email_List_11.assign(Camp_Name_Count=x) Not working over Loop- for index, dataset in enumerate(Camp_List): for h in range(len(Csv_List)): if len(dataset)==Camp_Count[h]: x=Camp_Name_Count[h] dataset.assign(Camp_Name_Count=x) break break break

6th Nov 2022, 6:11 AM
Hardik Nse
Hardik Nse - avatar
1 Answer
+ 1
Maybe try to develop a class for the data structure. There seems a linked list can be useful for such as thing.
6th Nov 2022, 8:17 AM
JaScript
JaScript - avatar