Scraping of Google Map to get the address of locations for given geocodes.

2021-09-02 Thread Michio Suginoo
Dear all, I have the following question regarding how to scrape Google Map to get address based on a given list of geocodes. Given a list of geocodes (latitude; longitude) of locations, I would like to scrape municipalities of all the spots in the list. How can I do that? For example, I have la

print the output of my code in Markdown using variable (not the value)

2020-08-15 Thread Michio Suginoo
Hi, I am still at an early stage of my personal Python evolution. I am coding Python3 in Jupyter Notebook (Anaconda environment). I want to print the output of my code in a 'markdown'. I want to use the variable in the 'markdown' rather than typing the output. This would save my time every time

Re: .replace() to replace elements in a Pandas DataFrame

2020-08-05 Thread Michio Suginoo
That said, what remains mystery is why the original one worked this morning. Strange! On Wed, Aug 5, 2020 at 10:15 PM Michio Suginoo wrote: > Hi Bob and MRAB, > Both of you, very kind. > Thanks. > I tried with DataFrame as my original code, but this time, I inserted > regex=Tru

Re: .replace() to replace elements in a Pandas DataFrame

2020-08-05 Thread Michio Suginoo
ctionary of > replacements ... mind you, it might be nice if it did. In the meantime, > have you tried looping through the dictionary and changing each possible > character? > > > On Wed, Aug 5, 2020 at 5:12 PM Michio Suginoo > wrote: > >> Hi MRAB, >> >>

Re: .replace() to replace elements in a Pandas DataFrame

2020-08-05 Thread Michio Suginoo
Name' : correction_dic2}) This case, unlike the earlier case, is aiming at replacing entire strings. Thanks, Best On Wed, Aug 5, 2020 at 9:12 PM Michio Suginoo wrote: > Hi MRAB, > > Sorry, I simply do not understand the intention of your statement. > If .replace() does not do what

Re: .replace() to replace elements in a Pandas DataFrame

2020-08-05 Thread Michio Suginoo
is sort of needs--to replace parts of string, not an entire string--should be common. So, I would presume, there must be some popular way to do it. If you know, I would appreciate it if you could advise me. Thanks. Best On Wed, Aug 5, 2020 at 8:38 PM MRAB wrote: > On 2020-08-06 00:06, Michi

Re: .replace() to replace elements in a Pandas DataFrame

2020-08-05 Thread Michio Suginoo
B wrote: > On 2020-08-05 23:21, Michio Suginoo wrote: > > Hi, > > > > I have trouble with .replace() method in a Pandas DataFrame. > > My code is something like this: > > correction_dic1 = {'á': 'a', 'í': 'i', 'ú'

.replace() to replace elements in a Pandas DataFrame

2020-08-05 Thread Michio Suginoo
Hi, I have trouble with .replace() method in a Pandas DataFrame. My code is something like this: correction_dic1 = {'á': 'a', 'í': 'i', 'ú': 'u', 'ó': 'o'} df = df.replace({'Name' : correction_dic1}) Basically, what I am trying to do here is to replace bowels with Spanish accent with a plain set o

Installing Basemap in Jupyter Notebook

2020-07-07 Thread Michio Suginoo
Hi I have a trouble in installing basemap in my local Jupyter Notebook. I used the code below. But it did not work. !conda install -c conda-forge basemap==1.3.0 matplotlib==2.2.2 -y How can I install basemap in my Jupyter Notebook? Thanks Best Regards Mich -- https://mail.python.org/mailman

Re: I cannot download python files from external source.

2020-05-31 Thread Michio Suginoo
, 2020 at 12:48 PM MRAB wrote: > On 2020-05-31 15:36, Michio Suginoo wrote: > > Thanks MRAB, > > > > I try to download the external file in .ipynb. > > And I get the message attached herewith. > > > > And this is not the first time, it has been like this. And

Re: I cannot download python files from external source.

2020-05-31 Thread Michio Suginoo
Hi Evan, Thanks for your explaining the situation in a plain language. Thanks to your description, I have a better understanding. This is one step forward. I will try to open it from Jupyter Notebook. If I still have trouble, I might get back to this list. Then, if you can further advise me from

I cannot download python files from external source.

2020-05-29 Thread Michio Suginoo
Hi I installed python via Anaconda some months ago. And since then, I could not download python files from external sources. Basically, every time I tried to download python files, the python system that I installed via Anaconda gives me a system message with three options: - Modify (add or mo