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


closed as off-topic by Henrik Schumacher, march, Alex Trounev, MarcoB, m_goldberg Mar 19 at 5:15

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question arises due to a simple mistake such as a trivial syntax error, incorrect capitalization, spelling mistake, or other typographical error and is unlikely to help any future visitors, or else it is easily found in the documentation." – Henrik Schumacher, march, Alex Trounev, MarcoB, m_goldberg
If this question can be reworded to fit the rules in the help center, please edit the question.


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:


enter image description here

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


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