I have this df create columns l and l1:
l1=[]
for i in range(1005,1105):
l1.append(i)
l=[]
for i in range(1005,1105):
l.append(i)
d = {'col1': l1, 'col2': l}
df = pd.DataFrame(data=d)
Now I would like create 10 samples with 10 rows each:
like sample_1, sample_2 up to sample_10. enter image description here How I make this?
My loop for doesn't work
for j in [1,2,3,4,5,6,7,8,9,10]:
sample_[j] = df.sample(n=10, random_state=j)
Thanks