My DF is very large is there a nice way (not for loop) to modify some values within the DF and save every N steps e.g.
def modifier(x):
x = x.split() # more complex logic is applied here
return x
df['new_col'] = df.old_col.apply(modifier)
Is there a nice way to add to modifier function some code that every 10,000 rows
df.to_pickle('make_copy.pickle')
will be called?