coa-project / pycoa

pycoa Python source code
MIT License
18 stars 0 forks source link

question concerning RKI DEU db #110

Open odadoun opened 3 years ago

odadoun commented 3 years ago

e=cg.GeoCountry('DEU') a=e.get_data() print(list(a.loc[a.name_subregion.isin(['Rostock'])]['code_subregion'])) return ['13003', '13003', '13072', '13072'] Question: one subregion name gives 4 codes names, it is ok ? The question concerns all those name (the number correspond to the number of code return)

{'Rostock': 4, 'Dithmarschen': 3, 'Pinneberg': 3, 'Leer': 3, 'Flensburg': 2, 'Kiel': 2, 'Nordfriesland': 2, 'Ostholstein': 2, 'Plön': 2, 'Rendsburg-Eckernförde': 2, 'Schleswig-Flensburg': 2, 'Steinburg': 2, 'Vorpommern-Rügen': 2, 'Nordwestmecklenburg': 2, 'Vorpommern-Greifswald': 2, 'Leipzig': 2, 'Hamburg': 2, 'Cuxhaven': 2, 'Stade': 2, 'Emden': 2, 'Osnabrück': 2, 'Wilhelmshaven': 2, 'Aurich': 2, 'Friesland': 2, 'Wittmund': 2, 'Bremen': 2, 'Bremerhaven': 2, 'Kassel': 2, 'Kaiserslautern': 2, 'Heilbronn': 2, 'Karlsruhe': 2, 'Konstanz': 2, 'München': 2, 'Rosenheim': 2, 'Landshut': 2, 'Passau': 2, 'Regensburg': 2, 'Bamberg': 2, 'Bayreuth': 2, 'Coburg': 2, 'Hof': 2, 'Ansbach': 2, 'Fürth': 2, 'Aschaffenburg': 2,

jfexbrayat commented 3 years ago

hi @odadoun

thanks for your interest. In your question you've got two unique codes for Rostock:

Then, for each of them you've got two shapes, screenshots taken from my notebook

See OSM for more detail https://duckduckgo.com/?q=rostock&t=newext&atb=v247-1&ia=maps&iaxm=maps

odadoun commented 3 years ago

Thanks for the explanation