4
$\begingroup$

I found that the list "Europe countries" encloses "Russia" and "Moldova". This is not correct! Any hint?

$\endgroup$
11
$\begingroup$

You may be looking for EntityClass["Country", "EuropeanUnion"] instead.

Otherwise, if you really want to not include Russia and Moldova:

countries = Complement[
 Entity["GeographicRegion", "Europe"][
  EntityProperty["GeographicRegion", "Countries"]], {Entity["Country",
    "Russia"], Entity["Country", "Moldova"]}]

Now you can still do aggregate computation using EntityGroup, such as

EntityValue[EntityGroup@countries, "Population"]

without including Russia or Moldova. (Alternatively, Total@EntityValue[countries, "Population"] will work too.)

You can also do geographic computation:

GeoGraphics[Polygon@countries]

enter image description here

As you can see, Moldova and Russia are not included.

$\endgroup$

Not the answer you're looking for? Browse other questions tagged or ask your own question.