Re: Request to advise error for python.
황병희 writes: > Dear 정성학, > [image: image.png] > > If you would like to show us your image, then write down the github/gitlab > link. ... This is example: https://gitlab.com/soyeomul/test/-/commit/80d2b4f5e8eda0238301e9bca5bc33f0127572fd Sincerely, Gopher Byung-Hee -- https://mail.python.org/mailman/listinfo/python-list
Re: Request to advise error for python.
Hi There are some errors in order to install numpy as follows. >>> pip install numpy File "", line 1 pip install numpy ^ SyntaxError: invalid syntax. Perhaps you forgot a comma? Would you advise me to correct error and install numpy or pandas? [image: image.png] === Seonghark Jeong KUL(Kookmin Unmanned vehicle research Laboratory) GSAEK, Kookmin Univ. E-Mail: seongh...@kookmin.ac.kr HP: 82-10-3600-7143 === 2021년 10월 20일 (수) 오전 2:47, 황병희 님이 작성: > Dear 정성학, > > >>> [image: image.png] > > If you would like to show us your image, then write down the github/gitlab > link. Of course i assume you have github/gitlab account. Because Mailing > server does filter for dangerous things such as image file, video clip, > action scripts (computer virus), i think... > > Sincerely, Gopher Byung-Hee > > -- > https://mail.python.org/mailman/listinfo/python-list > -- -- https://mail.python.org/mailman/listinfo/python-list
Re: Request to advise error for python.
On 10/20/21 23:10, 정성학(대학원생-자동차IT융합전공) via Python-list wrote: Hi There are some errors in order to install numpy as follows. pip install numpy File "", line 1 pip install numpy ^ SyntaxError: invalid syntax. Perhaps you forgot a comma? Would you advise me to correct error and install numpy or pandas? For this one, the command is run outside of Python - in other words, this is a shell command, not a Python command. Quit Python and try again. Extra reading: There are some nuances. If you are on a Linux system, Python is a system program and you don't want to try to install into system locations (you'll run into permission problems anyway), so trying a user install is useful. So: pip install --user numpy In fact, if you're on a Linux system you *may* prefer to install the packaged versions - use the appropriate package manager commands. The numpy site has lots more thoughts on installing - I believe they suggest using the conda installation system. https://numpy.org/install/ -- https://mail.python.org/mailman/listinfo/python-list
df.count() to a Pandas dataframe with column names
How to output the result of df.count() to a Pandas dataframe with column names? Regards, David -- https://mail.python.org/mailman/listinfo/python-list
Re: Request to advise error for python.
On 2021-10-21, Mats Wichmann wrote: > There are some nuances. If you are on a Linux system, Python is a > system program and you don't want to try to install into system > locations (you'll run into permission problems anyway), so trying a user > install is useful. So: > > pip install --user numpy > > In fact, if you're on a Linux system you *may* prefer to install the > packaged versions - use the appropriate package manager commands. Not all systems have a 'pip' executable. If a 'pip' exectuable does exist, it might not be the same version as your defualt python executable. It's usually a better idea to do it this way: $ python -m pip install --user numpy That said, if you're on Linux system, you're almostg always better off using your distro's package manger to install numpy. -- Grant -- https://mail.python.org/mailman/listinfo/python-list