Escolha aleatória e remova pandas de índice
train=df.sample(frac=0.8,random_state=200)
test=df.drop(train.index)
nomjeeb
train=df.sample(frac=0.8,random_state=200)
test=df.drop(train.index)
train=df.sample(frac=0.8,random_state=200)
test=df.drop(train.index)
train=df.sample(frac=0.8,random_state=200)
test=df.drop(train.index)
train=df.sample(frac=0.8,random_state=200)
test=df.drop(train.index)
train=df.sample(frac=0.8,random_state=200)
test=df.drop(train.index)
train=df.sample(frac=0.8,random_state=200)
test=df.drop(train.index)
train=df.sample(frac=0.8,random_state=200)
test=df.drop(train.index)
train=df.sample(frac=0.8,random_state=200)
test=df.drop(train.index)
train=df.sample(frac=0.8,random_state=200)
test=df.drop(train.index)
train=df.sample(frac=0.8,random_state=200)
test=df.drop(train.index)