text_html_output_1.png
from sklearn import model_selection

import pandas as pd

import numpy as np
import pandas as pd
from sklearn import model_selection
train = pd.read_csv('../input/30daysml/train.csv/train.csv')

train['kfold'] = -1

kf = model_selection.KFold(n_splits=10, shuffle=True, random_state=0)
for fold, (train_indicies, valid_indicies) in enumerate(kf.split(X=train)):
    train.loc[valid_indicies, 'kfold'] = fold

train.head()