Find more posts tagged with
Sort by:
1 - 3 of
31
I want to use multiple for loop in rapidminer as i used in python
for yr in yr_df['sic'].unique().tolist():
for yr in yr_df['sic'].unique().tolist():
sic_df=yr_df[yr_df['sic']==yr]
for index_1,i in sic_df.iterrows():
for index_2,j in sic_df.iterrows():
if i['name']!=j['name']:
if i['RevenueTotalR']>=j['below_percnt'] and i['RevenueTotalR']<=j['above_percnt']:
print(i['name'],'==',j['name'])
print(index_1)
i['peer_name']=j['name']
is this one example set? Or three different ones? In which form do you have them?
If you have one table and want to change the Check column, you don't need a loop. Just Generate Attributes with something like this:
A > Sr
(this will automatically return true or false)
I hope I understand you correctly. If not, please answer the questions and specify what the Check logic should be.
Regards,
Balázs