Use python to read several Rapidminer ExampleSets
Hi everyone!
I am a beginner of Rapidminer.
I created a Loop on rapidminer that reads a series of csv files from a folder on my pc.
The loaded ExampleSets have only two columns.
For only one of these columns I want to calculate the larger values with Python.
how can this be done?
For the moment I have written a code on Python that reads ONLY A csv file of these:
with open(r'C:\Users\FR\Desktop\First.csv') as file:
for line in file:
item = int(line)
list.append(item)
results = []
for i in range(len(list):
a = lista[i-1]
b = lista[i]
c = lista[i+1]
if b >= a and b >= c:
results.append(b)
print(results)
is there a way not to repeat this code for each file?
is there a way not to repeat this code for each file?