Closed raphadasilva closed 1 year ago
hello,
the example below is working on my side on Linux and Python 3.10.
Kind reminder, you should use get_location straight
after having used search_sirene
.
This method can only be used on SireneDataFrame
objects and not on pandas DataFrame
.
_get_location_openstreetmap
is meant to be for internal usage of the package so no maintainenance can me assumed but you can use it.
from pynsee.sirene import search_sirene
test = search_sirene(variable = ["activitePrincipaleEtablissement", "codeCommuneEtablissement"],
pattern = ["13.20Z", "68*"], kind = 'siret', number=1000)
test_location = test.get_location()
Let me know if further investigation is needed,
Thanks for the answer, Hadrien. After various resinstallations, it worked. I close the issue
Have a nice week-end
Rapha
I'm just following this simple example provided in this repo. My first data is:
But when I execute this to get the associated locations:
test = test.get_location()
Got this error:
I noticed that the get_location method could have been renamed _get_location_openstreetmap, but it didn't solve this issue.
What can I do ?