AttributeError: the object & # 39; numpy.ndarray & # 39; has no & iloc & # 39; iloc & # 39; attribute

I am trying to do this function, but in .iloc gives this error. Already searched, but found no solution.

def train_validate_test_split(entrada_escala_df, classe, train_percent=.6, validate_percent=.2, seed=None):
    np.random.seed(seed)
    perm_entrada = np.random.permutation(entrada_escala_df)
    perm_classe  = np.random.permutation(classe)

    m_entrada = len(entrada_escala_df)
    m_classe  = len(classe)

    train_entrada_end = int(train_percent * m_entrada)
    train_classe_end  = int(train_percent * m_classe)

    validate_entrada_end = int(validate_percent * m_entrada) + train_entrada_end
    validate_classe_end  = int(validate_percent * m_classe) + train_classe_end

    train_entrada = entrada_escala_df.iloc(perm_entrada(:train_entrada_end))
    train_classe = classe.iloc(perm_classe(:train_classe_end))

    validate_entrada = entrada_escala.iloc(perm_entrada(train_entrada_end:validate_entrada_end))
    validate_classe  = classe.iloc(perm_classe(train_classe_end:validate_classe_end))

    test_entrada = entrada_escala.iloc(perm_entrada(validate_entrada_end:))
    test_classe  = classe.iloc(perm_classe(validate_classe_end:))

    return (train_entrada, validate_entrada, test_entrada, train_classe, validate_classe, test_classe)