Re: Most efficient way to replace ", " with "." in a array and/or dataframe
Markos writes: [...] >>> Please, any comments or tip? >> data = pd.read_csv ('table.csv', sep = ',', skiprows = 1, decimal=b',', >> skipinitialspace=True) >> > Thank you for the tip. > > I didn't realize that I could avoid formatting problems in the dataframe > or array simply by using the read_csv command with the correct > parameters (sep and decimal). > > I searched for information about the meaning of the letter "b" in the > parameter decimal=b',' but didn't find. > > I found that it also works without the letter b. > I added the b because the default in the definition of read_csv is b'.', but you are right, it works with just ','. -- Piet van Oostrum WWW: http://piet.vanoostrum.org/ PGP key: [8DAE142BE17999C4] -- https://mail.python.org/mailman/listinfo/python-list
RE: Unable to start Python with Windows 7
Hi Eren, I have Win 64bit and run Python also in 64 bits. What is strange is that I can run Python, but only with a short program ! Best regards, Christian -Message d'origine- De : Python-list [mailto:python-list-bounces+cdoare.ext=orange@python.org] De la part de Eko palypse Envoyé : jeudi 19 septembre 2019 18:06 À : python-list@python.org Objet : Re: Unable to start Python with Windows 7 Am Donnerstag, 19. September 2019 17:52:48 UTC+2 schrieb cdoa...@orange.com: > Hi, > I am no more able to start Python from Windows 7 environment. > I have the following message : > "The Application was unable to start correctly, (0xC142). Click OK to > close the application" > > Do you have any idea where the problem is ? > > Bests regards, > A shot in the dark, you do have Win7 32bit and tried to start python 64bit Eren -- https://mail.python.org/mailman/listinfo/python-list _ Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration, Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci. This message and its attachments may contain confidential or privileged information that may be protected by law; they should not be distributed, used or copied without authorisation. If you have received this email in error, please notify the sender and delete this message and its attachments. As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified. Thank you. -- https://mail.python.org/mailman/listinfo/python-list
Re: Unable to start Python with Windows 7
>What is strange is that I can run Python, but only with a short program ! Hi Crhistian, hard to tell, what might help is if you can copy/paste code which does not run (an example should be as small as possible). In addition, isn't there any output you get when the program doesn't run? A traceback etc... and how do you run those programs, by double clicking .py files via cmd like python myfile.py, via an editor ... Eren -- https://mail.python.org/mailman/listinfo/python-list
RE: Unable to start Python with Windows 7
Hi Eren, Thanks for your help. But I tried another way. I am now on Linux and it works fine ! I don't to want to lose any more time on windows ;-) Christian -Message d'origine- De : Python-list [mailto:python-list-bounces+cdoare.ext=orange@python.org] De la part de Eko palypse Envoyé : lundi 23 septembre 2019 13:44 À : python-list@python.org Objet : Re: Unable to start Python with Windows 7 >What is strange is that I can run Python, but only with a short program ! Hi Crhistian, hard to tell, what might help is if you can copy/paste code which does not run (an example should be as small as possible). In addition, isn't there any output you get when the program doesn't run? A traceback etc... and how do you run those programs, by double clicking .py files via cmd like python myfile.py, via an editor ... Eren -- https://mail.python.org/mailman/listinfo/python-list _ Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration, Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci. This message and its attachments may contain confidential or privileged information that may be protected by law; they should not be distributed, used or copied without authorisation. If you have received this email in error, please notify the sender and delete this message and its attachments. As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified. Thank you. -- https://mail.python.org/mailman/listinfo/python-list
JOB | Front End Architect (London, UK)
Hello, I'm working with an employer that is looking to hire a permanent front end architect to join their London office. You should have experience with Javascript and frameworks such as (but not only) React. Consequently, I had hoped that some members of this mailing list may like to discuss further off-list using "JamesBTobin (at) Gmail (dot) Com". Kind regards, James -- https://mail.python.org/mailman/listinfo/python-list
How to get only valid python package index
Hellom As per https://pypi.org/simple/ we have ~2,00,000 packages. i feel there are lot of packages found to be dummy/Experimental. Where can we get the properly maintained package list for python? If not, atleast please let me know what kind of strategy i shoud use to decide whether package is valid or not? Thanks, Vijay -- https://mail.python.org/mailman/listinfo/python-list
Re: How to get only valid python package index
On Mon, 23 Sep 2019 at 19:15, Vijay Kumar Kamannavar wrote: > > Hellom > > As per https://pypi.org/simple/ we have ~2,00,000 packages. i feel there > are lot of packages found to be dummy/Experimental. Where can we get the > properly maintained package list for python? There is no "properly maintained package list" in the sense that I suspect you mean it, i.e. a curated list where the maintainers guarantee a particular level of quality or support for the available packages. PyPI is an open index and anyone can register an account and upload packages, without restriction. > If not, atleast please let me know what kind of strategy i shoud use to > decide whether package is valid or not? The responsibility for reviewing and assessing the quality of packages lies with the user, so you'll need to assess each package for yourself, in much the same way that you would assess any other open source package - you can look at existing code, blog posts or articles to get a sense of what packages are considered good, or "best of breed", or you can assess the code and documentation against whatever standards you wish to apply. It shouldn't take long if you read some articles to get a sense of some of the more well-known packages (things like requests, numpy, pandas, matplotlib, django, ...) but what is best for you depends entirely on what you are trying to do with Python. Hope this helps, Paul -- https://mail.python.org/mailman/listinfo/python-list
python installation.
I receive a 'not a valid Win32...' after a few minutes of installing python 3.7.4. I have reinstalled it several times with the same results. My laptop uses windows 7, 64-bit. What can I do to solve this? Thank you. -- https://mail.python.org/mailman/listinfo/python-list
Re: python installation.
On 24Sep2019 00:12, Brian Korir wrote: I receive a 'not a valid Win32...' after a few minutes of installing python 3.7.4. I have reinstalled it several times with the same results. My laptop uses windows 7, 64-bit. What can I do to solve this? Thank you. Are you using the appropriate installer? In particular (guessing from the message) might you have fetched a 32 bit install instead of the x86-64 installer? Please check this page: https://www.python.org/downloads/windows/ for installers, and if you've definitely got the right installer please post details about what installer you chose. Disclaimer: not a Windows person. Cheers, Cameron Simpson -- https://mail.python.org/mailman/listinfo/python-list
Re: python installation.
I used Windows x86-64 executable installer the first two times and Windows x86-64 web-based installer. They both yielded the same result. On Tue, 24 Sep 2019 05:46 Cameron Simpson, wrote: > On 24Sep2019 00:12, Brian Korir wrote: > >I receive a 'not a valid Win32...' after a few minutes of installing > python > >3.7.4. I have reinstalled it several times with the same results. My > laptop > >uses windows 7, 64-bit. What can I do to solve this? Thank you. > > Are you using the appropriate installer? In particular (guessing from > the message) might you have fetched a 32 bit install instead of the > x86-64 installer? > > Please check this page: > > https://www.python.org/downloads/windows/ > > for installers, and if you've definitely got the right installer please > post details about what installer you chose. > > Disclaimer: not a Windows person. > > Cheers, > Cameron Simpson > -- https://mail.python.org/mailman/listinfo/python-list
Re: How to get only valid python package index
Vijay Kumar Kamannavar writes: > As per https://pypi.org/simple/ we have ~2,00,000 packages. i feel there > are lot of packages found to be dummy/Experimental. Where can we get the > properly maintained package list for python? In addition of what Paul already wrote: "https://pypi.org/simple"; is an interface for programs (such as "pip" or "buildout") not for human users. Use "pypi.org" directly for an interface for humans. "pypi.org" allows you to filter by "classifier". There are many kinds of "classifier"s, among them "Development Status". It allows you to restrict searches to "stable" releases (to exclude e.g. "experimental" versions). You can also take into account the version number. Often, an "a" (= "Alpha") or "b" (= "Beta") in the version number indicates, that the author does not yet consider the version fully/reliably/generally operational. As Paul pointed out: all information on "PyPI" is provided by the authors and, therefore, is not necessarily reliable. That said, I have met only isolated packages which were not usable (according to my standards - which may be very different from yours). -- https://mail.python.org/mailman/listinfo/python-list