I need to import with
pd.read_csv
a repetitive importation as at first time I import
node_t1 = pd.read_csv(\'5mins/nodes/N12
That can be done using a formatted string and a loop like:
def read_nodes(node_number):
n1 = pd.read_csv('5mins/nodes/N%d' % node_number)
n2 = pd.read_csv('10mins/nodes/N%d' % node_number)
n3 = pd.read_csv('15mins/nodes/N%d' % node_number)
return n1, n2, n3
for i in range(150):
node_t1, node_t2, node_t3 = read_nodes(i)
# process nodes for node i here
....