0

Have a look at figures, enter image description here, as you can see, I am using glob to load the data and storing in files

What I want to do is I want to take ten files and do some operation and I will get the one file output from that thus I will have a total of 133 output files.

The manual option I tried enter image description here

1 Answers1

1

Here is a working example of how I would do it.

# Creating the list example
a = list(range(1330))
# new empty list
b = list()

for i in range(0, len(a), 10):
    b.append(a[i:i+10])

Essentially using the steps within the range function we can step over the 10 selected and collect the next 10 items in the list

Kwsswart
  • 529
  • 1
  • 7
  • 20