Why n-split is not possible for a dataframe with KFold?
There is a typo error in the below line. Change KFold to Kfold below and try.

score=cross_val_score(clf,train1,test1,cv=KFold,n_jobs=1,scoring=scoring)