def get_textual_column_indexes(train, test):
    """Return a tuple containing an ndarray with train and test textual column indexes.

  Keyword arguments:
  train -- the train dataframe
  test -- the test dataframe
  """
    txt_cols_train = train.select_dtypes('object').columns
    txt_indexes_train = train.columns.get_indexer(txt_cols_train)
    txt_cols_test = test.select_dtypes('object').columns
    txt_indexes_test = test.columns.get_indexer(txt_cols_test)
    return txt_indexes_train, txt_indexes_test