Data peeping function?

2014-01-12 Thread Thor Whalen
The first thing I do once I import new data (as a pandas dataframe) is to .head() it, .describe() it, and then kick around a few specific stats according to what I see. But I'm not satisfied with .describe(). Amongst others, non-numerical columns are ignored, and off-the-shelf stats will be com

Re: list comprehension question

2009-05-01 Thread thor
On May 1, 2:28 pm, Arnaud Delobelle wrote: > Ross writes: > > If I have a list of tuples a = [(1,2), (3,4), (5,6)], and I want to > > return a new list of each individual element in these tuples, I can do > > it with a nested for loop but when I try to do it using the list > > comprehension b = [

Re: best way to do this

2008-12-02 Thread thor
On Dec 2, 10:09 pm, TP <[EMAIL PROTECTED]> wrote: > Hi everybody, > > >>> c=[(5,3), (6,8)] > > From c, I want to obtain a list with 5,3,6, and 8, in any order. > I do this: > > >>> [i for (i,j) in c] + [ j for (i,j) in c] > > [5, 6, 3, 8] > > Is there a quicker way to do this? > >>> c = [(5, 3), (

Re: More like a shell command.

2008-08-06 Thread Thor
Maybe this module would work fine: http://docs.python.org/lib/module-cmd.html -- Angel -- http://mail.python.org/mailman/listinfo/python-list

Re: Parallel python + ??

2008-06-11 Thread Thor
Gerhard Häring wrote: > This is of course OS-specific. On Linux, you can parse the proc > filesystem: > > >>> open("/proc/%i/stat" % os.getpid()).read().split()[39] > > You can use the "taskset" utility to query or set CPU affinity on Linux. > It is going to be in Linux (mainly) I was thinking

Parallel python + ??

2008-06-11 Thread Thor
Hi, I am running a program using Parallel Python and I wonder if there is a way/module to know in which CPU/core the process is running in. Is that possible? Ángel -- http://mail.python.org/mailman/listinfo/python-list

Re: Access lotus notes using Python

2005-05-24 Thread Thor Arne Johansen
ss tables. (Examples of odbc connection: mxODBC or the odbc provided by win32all) HTH, Thor Arne Johansen Technical Director Ibas AS -- http://mail.python.org/mailman/listinfo/python-list