i need to create to random samples, in order to make cross-validation in next step. Say, we have a pd.Series object, and we are testing how it should work. But when I type this:
example=pd.Series([1,2,3,4,5,6])
example1=example.sample(n=2, replace=False, random_state=12345)
example2=example.sample(n=4, replace=False, random_state=12345)
print(example1)
print(example2)
I get:
5 6
3 4
dtype: int64
5 6
3 4
4 5
0 1
dtype: int64
but the elements shoud be different, and example 1 and example 2 shoud be equal to example. What can be done?