Re: Pandas or Numpy

2022-01-23 Thread Dennis Lee Bieber
On Sun, 23 Jan 2022 07:34:26 -0800, Tobiah declaimed the following: I'm going to do a little rearranging of your paragraphs, since most of them are domain specific, whereas the last (original) paragraph actually gets to a core... Caveat: I've not written anything making use of ei

Re: mac app from a python script?

2022-01-23 Thread Cameron Simpson
On 23Jan2022 21:37, Barry Scott wrote: >I do not have experience with great, but you might try pyinstaller. >I use it to make a PyQt Mac app successfully. And I have used py2app/py2applet to create a PyQt Mac app. AIUI, they both do the same basic task: bundle a Python interpreter and all the i

Re: mac app from a python script?

2022-01-23 Thread Barry
> On 23 Jan 2022, at 21:40, Barry wrote: > >  > >> On 23 Jan 2022, at 18:02, Dan Stromberg wrote: >> >> Hi folks. >> >> I have a Python 3 script (built on top of gi.respository.Gtk) that runs on >> Linux and macOS 11.5. It's at https://stromberg.dnsalias.org/~strombrg/hcm/ >> if you're c

Re: mac app from a python script?

2022-01-23 Thread Barry
> On 23 Jan 2022, at 18:02, Dan Stromberg wrote: > > Hi folks. > > I have a Python 3 script (built on top of gi.respository.Gtk) that runs on > Linux and macOS 11.5. It's at https://stromberg.dnsalias.org/~strombrg/hcm/ > if you're curious. > > It works the way I want on Linux, but on macOS

Re: How to test for maildir 'folder' in Python?

2022-01-23 Thread Barry
> On 23 Jan 2022, at 17:08, Chris Green wrote: > > Barry Scott wrote: >> >> On 22 Jan 2022, at 21:26, Chris Green wrote: >>> >>> I have a script that walks a quite deep tree of mail messages to find >>> and archive old messages. I'm trying to convert it from mbox to >>> maildir (as

Re: Pandas or Numpy

2022-01-23 Thread Avi Gross via Python-list
Definitely it sounds like you may use both. Quite a bit of what people do using DataFrame objects includes working on copies of individual columns, which often are numpy Series or the like and in the other direction, can be used to create or amend a pandas DataFrame. Plus, many operations used t

Re: "undefined symbol" in C extension module

2022-01-23 Thread Dan Stromberg
On Sun, Jan 23, 2022 at 9:02 AM Robert Latest via Python-list < python-list@python.org> wrote: > Dan Stromberg wrote: > > Perhaps try: > > https://stromberg.dnsalias.org/svn/find-sym/trunk > > > > It tries to find symbols in C libraries. > > > > In this case, I believe you'll find it in -lpythonx.

Re: Pandas or Numpy

2022-01-23 Thread Julius Hamilton
Hey, I don’t know but in case you don’t get other good answers, I’m pretty sure Numpy is more of a mathematical library and Pandas is definitely for handling spreadsheet data. So maybe both. Julius On Sun 23. Jan 2022 at 18:28, Chris Angelico wrote: > On Mon, 24 Jan 2022 at 04:10, Tobiah

mac app from a python script?

2022-01-23 Thread Dan Stromberg
Hi folks. I have a Python 3 script (built on top of gi.respository.Gtk) that runs on Linux and macOS 11.5. It's at https://stromberg.dnsalias.org/~strombrg/hcm/ if you're curious. It works the way I want on Linux, but on macOS I seem to have to start it from the command line, like: hcm --gui

Re: "undefined symbol" in C extension module

2022-01-23 Thread Dieter Maurer
Robert Latest wrote at 2022-1-22 11:29 GMT: >I've written some CPython extension modules in the past without problems. Now >after moving to a new Archlinux box with Python3.10 installed, I can't build >them any more. Or rather, I can build them but not use them due to "undefined >symbols" during li

Re: Pandas or Numpy

2022-01-23 Thread Chris Angelico
On Mon, 24 Jan 2022 at 04:10, Tobiah wrote: > > I know very little about either. I need to handle score input files > for Csound. Each line is a list of floating point values where each > column has a particular meaning to the program. > > I need to compose large (hundreds, thousands, maybe mill

Pandas or Numpy

2022-01-23 Thread Tobiah
I know very little about either. I need to handle score input files for Csound. Each line is a list of floating point values where each column has a particular meaning to the program. I need to compose large (hundreds, thousands, maybe millions) lists and be able to do math on, or possibly sort

Re: How to test for maildir 'folder' in Python?

2022-01-23 Thread Chris Green
Barry Scott wrote: > > > > On 22 Jan 2022, at 21:26, Chris Green wrote: > > > > I have a script that walks a quite deep tree of mail messages to find > > and archive old messages. I'm trying to convert it from mbox to > > maildir (as I now store my mail in maildir format). > > > > So I need

Re: How to test for maildir 'folder' in Python?

2022-01-23 Thread Chris Green
Cameron Simpson wrote: > On 22Jan2022 21:26, Chris Green wrote: > >So I need to test whether a point I have reached in the hierarchy is a > >maildir mailbox or not. Using mbox format it's easy because 'folders' > >are directories and mailboxes are files. However with maildir the > >'folders' ha

Re: "undefined symbol" in C extension module

2022-01-23 Thread Robert Latest via Python-list
Dan Stromberg wrote: > Perhaps try: > https://stromberg.dnsalias.org/svn/find-sym/trunk > > It tries to find symbols in C libraries. > > In this case, I believe you'll find it in -lpythonx.ym Thanks! Found out that ldd produces many errors also with working python libraries. Turns out I tried to r

Re: How to test for maildir 'folder' in Python?

2022-01-23 Thread Barry Scott
> On 22 Jan 2022, at 21:26, Chris Green wrote: > > I have a script that walks a quite deep tree of mail messages to find > and archive old messages. I'm trying to convert it from mbox to > maildir (as I now store my mail in maildir format). > > So I need to test whether a point I have reached