Dataframe iterating question : 3 ways of calling a row and column

2017-08-21 Thread zach . smith
l in the dataframe? Are there speed differences? Is it simply a preference thing? Is there a PEP8 preferred way of doing this? Are there specific disadvantages to any of the methods? Thanks in advance. Zach -- https://mail.python.org/mailman/listinfo/python-list

Re: Python Requests logging 401 immediately before 200

2015-02-20 Thread Zach Dunlap
On Friday, February 20, 2015 at 12:31:00 PM UTC-5, Chris Angelico wrote: > On Sat, Feb 21, 2015 at 4:16 AM, Zach Dunlap wrote: > > INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection > > (1): localhost > > DEBUG:requests.packages.urllib3.connect

Python Requests logging 401 immediately before 200

2015-02-20 Thread Zach Dunlap
Hi everyone, I'm using MarkLogic and have a Python script set up to check for documents using Requests (http://docs.python-requests.org/en/latest/) and I have logging included in the script. I have logging set to the DEBUG level. When I set the script to simple search and return the HTTP statu

Re: Python IDE/Eclipse

2011-08-26 Thread Zach Dziura
I've honestly always used either PyDev or IDLE. However, Python is pretty easy to usd without a big IDE slowing you down, so you could also use a developer's text editor like Notepad++ or gedit and still be good. -- http://mail.python.org/mailman/listinfo/python-list

Re: Looking for Coders or Testers for an Open Source File Organizer

2011-06-15 Thread Zach Dziura
Also, can I be added to the project? Email is zcdzi...@gmail.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Looking for Coders or Testers for an Open Source File Organizer

2011-06-15 Thread Zach Dziura
On Jun 14, 8:22 pm, zainul franciscus wrote: > Thank you for the reply. I should have mentioned where I am hosting > the code *doh slap on the wrist. > > I am hosting the code in google > code:http://code.google.com/p/mirandafileorganizer/ > > There is a link to the user/developer guide on how to

Re: Function within class and in modules

2011-06-15 Thread Zach Dziura
> On Jun 15, 7:57 am, TheSaint wrote: > Hello > sorry, I'm bit curious to understand what could be the difference to pack up > a class for some number of functions in it and a simple module which I just > import and use the similar functions? > The only perspective that I think of is that class mi

Re: What is the Most Efficient Way of Printing A Dict's Contents Out In Columns?

2011-06-14 Thread Zach Dziura
> d={'Header2': ['2', '5', '8'], 'Header3': ['3', '6', '9'], >     'Header1': ['1', '4', '7'], 'Header4': ['10', '11', '12']} > > arr = [] > for key,value in d.items(): >      line = ['{:>10s}'.format(key)] >      for num in value: >          line.append('{:>10s}'.format(num)) >      arr.append(lin

Re: [OT] Python like lanugages [was Re: After C++, what with Python?]

2011-01-18 Thread Zach
Anyone have thoughts on Cobra? On Jan 18, 2011 4:20 PM, "Zach" wrote: > Cobra seems to similar to python. Or it at least compares itself to python. -- http://mail.python.org/mailman/listinfo/python-list

Re: [OT] Python like lanugages [was Re: After C++, what with Python?]

2011-01-18 Thread Zach
Cobra seems to similar to python. Or it at least compares itself to python. -- http://mail.python.org/mailman/listinfo/python-list

Mimicing an HTML form

2009-08-12 Thread Zach Hobesh
Does anybody have any suggestions? I keep on getting bad request, so I'm assuming that the html page is passing something that my script is not. Is there some way to scrape the POST request from the html form? Thanks, Zach -- http://mail.python.org/mailman/listinfo/python-list

Re: Config files with different types

2009-07-03 Thread Zach Hobesh
yaml looks pretty interesting. Also, I wouldn't have to change much, I would still use the same function, and still output a dict. Thanks! -Zach On Thu, Jul 2, 2009 at 11:55 PM, Javier Collado wrote: > Hello, > > Have you considered using something that is already developed? >

Config files with different types

2009-07-02 Thread Zach Hobesh
also like to able to read '1' as an in, '1.0' as a float, etc... I remember once I saw a script that took a string and tried int(), float() wrapped in a try except, but I was wondering if there was a more direct way. Thanks in advance, Zach -- http://mail.python.org/mailman/listinfo/python-list

Re: Re: Executing a python script while it is running

2009-06-16 Thread Zach Hobesh
sing a job management system, and they have the option of triggering a command line after completing a job. A better/safer solution might be spawning another job and re-inserting to the jms queue. Thanks again, Zach -- http://mail.python.org/mailman/listinfo/python-list

Re: Executing a python script while it is running

2009-06-16 Thread Zach Hobesh
e application finishes a small file right after finishing a large file. Thanks for your response! -Zach -- http://mail.python.org/mailman/listinfo/python-list

Executing a python script while it is running

2009-06-16 Thread Zach Hobesh
Hi everybody, Here's my situation: I have a batch file that calls a python script. This batch file is triggered by an outside application when the application completes a task. The problem is that while the batch file (and pythons script) is running, the application will complete the next task,

methods and class methods

2009-03-31 Thread Zach Goscha
I just learned python programming and is wondering how to change a method to a class method. Also what are the differences between a method and class method. Thanks in advance - Zach (Freshman student in High school) -- http://mail.python.org/mailman/listinfo/python-list

Problems with code

2009-03-30 Thread Zach Goscha
Hi, I am trying to call an unbound method (Map.Background) but getting the following error: TypeError: unbound method background() must be called with Map instance as first argument (got nothing instead) Here is some of the code(not completed) Thanks in Advance - Zach Code: class Knight

Can't get a simple TCP program to work

2009-03-30 Thread Zach
The following *extremely* simple script complains that "Socket is not connected" when I try to call recv. Could anyone provide some quick guidance? http://pastebin.com/m64317b32 -- http://mail.python.org/mailman/listinfo/python-list

Shared script

2008-08-01 Thread Zach Hobesh
rt of asking everybody else to put the module in thir Python 25 folder (which would mean me e-mailing them to update the module, and then assuming that they did) ?!? Thanks, Zach -- http://mail.python.org/mailman/listinfo/python-list

Running python scripts in a VB program

2008-07-28 Thread Zach Hobesh
Does anyone have any clue on how to embed python scripts in a visual basic windows app? Additionally, does anybody else feel like Visual Basic is ridiculously confusing? Any help is appreciated. Thanks, -Zach -- http://mail.python.org/mailman/listinfo/python-list

automating python programs

2008-07-21 Thread Zach Hobesh
Hi, I'm trying to figure out how to run a python program on a schedule, maybe every half an hour... Is this possible? Thanks! -Zach -- http://mail.python.org/mailman/listinfo/python-list