from typing import Iterable
from typing import Any
from typing import List


def parse_keywords(columns: Iterable[Any], candidates: List[str]):
	"""	Matches values in `columns` that are present in `candidates`
		Parameters
		----------
			columns: Iterable[str]
				A list of the columns in the table.
			candidates: List[str]
				A list of the possible column names that hold the
				desired information.
				Ex. `country`, `regionName`, `countryName` to
				extract the column with the region's name
	"""

	candidates = [col for col in columns if col in candidates]
	if len(candidates) == 0:
		value = None
	else:
		value = candidates[0]

	return value