I have a csv file I have to make some changes to before I read it into
pandas. Currently I open the csv read each row, make changes and save it to
a new file. Then read it into pandas with pandas.read_csv(). How do I skip
writing the file to disk? Using python3.5.
This is what I am doing now.
wit
On Wed, 14 Oct 2015 15:23:25 -0400, Terry Reedy
wrote:
>
>> I found all the Python books available dealt with version 2.x,
>
>I searched "python 3 book" and immediately come up with
>Programming in Python 3
>Dive Into Python 3
>Python 3 for Absolute Beginners
>
>+ 'free'
>Non-Programmer's Tutoria
Jason Swails writes:
> What I recently realized, though, that what this construct allows is
> for the coverage testing package (which I have recently started
> employing for my project... thanks Ned and others!) to detect whether
> or not both code paths are covered in the test suite.
Coverage.p
On Thu, Oct 15, 2015 at 12:49 PM, Jason Swails wrote:
> My question is, what do you think of the "else: pass" statement? It is a
> complete no-op and is syntactically equivalent to the same code with those
> lines removed. Up until earlier today, I would look at that and cringe (I
> still do, a
Hi everyone,
I'd like to get some opinions about some coding constructs that may seem at
first glance to serve no purpose, but does have *some* non-negligible
purpose, and I think I've come to the right place :).
The construct is this:
def my_function(arg1, arg2, filename=None):
""" Some fun
On 10/14/2015 10:04 AM, Cai Gengyang wrote:
So I am going through this article on Python for newbies
---http://askpython.com/execute-python-scripts/
Managed to create a file with these contents :
1 #!/usr/bin/env python3
2
3 print('hello world')
and saved it as hello.py
You did write that f
On 10/14/15, Zachary Ware wrote:
>
> You can find where Python is installed using Python itself: try `py
> -3.5 -c "import sys, os;os.system('explorer ' + sys.prefix)"` at the
> Command Prompt,
Here's a slightly simpler way to open the folder:
py -3.5 -c "import os, sys; os.startfile(sys.pre
Thanks for the response and the reference, indeed sets and lists behave
differently...
--
https://mail.python.org/mailman/listinfo/python-list
> On 14 Oct 2015, at 23:11, candide via Python-list
> wrote:
>
> If set size changes during a for loop, a runtime exception is raised
A set is a kind of dictionary (without values). And why it can't be resized, is
explained by Brandon Rhodes in his excellent talk 'The Mighty Dictionary',
htt
On Wed, Oct 14, 2015 at 3:11 PM, candide via Python-list
wrote:
> If set size changes during a for loop, a runtime exception is raised:
>
> [SNIP]
>
> Surprisingly, if a for loop changes the size of a list it is iterating on, no
> exception is raised :
>
> [SNIP]
>
> So why lists and sets don't r
If set size changes during a for loop, a runtime exception is raised:
~~
S = {2015}
for z in S:
S.add(42)
~~
~~
Traceback (most recent call last):
File "_.py", line 2, in
for z in S:
RuntimeError: Set
On 2015-10-14 20:05, John S. James wrote:
I installed 3.5.0 today and it's working fine -- either from the
command prompt, or running a .py script.
But the Python 3.4 that was previously installed on the computer had
a Python34 folder, which contained DDLs, Doc, include, Lib, and
various other f
> Where can I find that folder? Or can I just ignore it for now (and get
the documentation elsewhere)?
If the install was done for "all users" on the machine, then the Python
installation directory will be under " %SystemRoot%\Program Files\" for
64-bit or "%SystemRoot%\Program Files (x86)\" for 3
On Wed, Oct 14, 2015 at 2:05 PM, John S. James wrote:
> I installed 3.5.0 today and it's working fine -- either from the command
> prompt, or running a .py script.
>
> But the Python 3.4 that was previously installed on the computer had a
> Python34 folder, which contained DDLs, Doc, include, Li
I found all the Python books available dealt with version 2.x,
I searched "python 3 book" and immediately come up with
Programming in Python 3
Dive Into Python 3
Python 3 for Absolute Beginners
+ 'free'
Non-Programmer's Tutorial for Python 3
https://en.wikibooks.org/wiki/Non-Programmer's_Tuto
On 2015-10-14 18:41, James DeVincentis wrote:
I’ve got a bit of a problem with copy.deepcopy and using
multiprocessing.Queue.
I have an HTTPAPI that gets exposed to add objects to a
multiprocessing.Qeue. Source code here:
https://github.com/jmdevince/cifpy3/blob/master/lib/cif/api/handler.py#L28
I installed 3.5.0 today and it's working fine -- either from the command
prompt, or running a .py script.
But the Python 3.4 that was previously installed on the computer had a Python34
folder, which contained DDLs, Doc, include, Lib, and various other folders and
files. I haven't found a compa
Ok thanks ... this --- https://docs.python.org/3/tutorial/index.html looks like
a way more comprehensive resource.
Paul Graham has written an excellent essay called "The Python Paradox" :
http://www.paulgraham.com/pypar.html. Putting it here for sharing and
discussion ...
On Thursday, October
On Wed, 14 Oct 2015 12:32:33 GMT, NewsLeecher User
wrote:
>In reply to "edmondo.giovanno...@gmail.com" who wrote the following:
>
>> Il giorno mercoled=EC 14 ottobre 2015 12:04:30 UTC+2, Chris Angelico ha scr=
>> itto:
>> > On Wed, Oct 14, 2015 at 8:55 PM, NewsLeecher User wrote:
>> > > But with
On Wed, Oct 14, 2015 at 11:04 AM, Cai Gengyang wrote:
> So I am going through this article on Python for newbies
> ---http://askpython.com/execute-python-scripts/
That looks like a terrible resource. There are plenty of tutorials and
books out there that are actually good. I suggest starting wit
I've got a bit of a problem with copy.deepcopy and using
multiprocessing.Queue.
I have an HTTPAPI that gets exposed to add objects to a
multiprocessing.Qeue. Source code here:
https://github.com/jmdevince/cifpy3/blob/master/lib/cif/api/handler.py#L283
The trouble is, even using deepcopy, m
I've got a bit of a problem with copy.deepcopy and using
multiprocessing.Queue.
I have an HTTPAPI that gets exposed to add objects to a
multiprocessing.Qeue. Source code here:
https://github.com/jmdevince/cifpy3/blob/master/lib/cif/api/handler.py#L283
The trouble is, even using deepcopy, m
On Thursday, October 15, 2015 at 1:18:27 AM UTC+8, paul.her...@gmail.com wrote:
> > Where do I find the "command line" ?
>
> Welcome to Python.
>
> Starting a command shell depends on which operating system you are running.
>
> If you are on Microsoft Windows, choose the Start button, then type
> Where do I find the "command line" ?
Welcome to Python.
Starting a command shell depends on which operating system you are running.
If you are on Microsoft Windows, choose the Start button, then type "cmd"
into the edit control, then press Enter.
--
https://mail.python.org/mailman/listinfo/py
So I am going through this article on Python for newbies
---http://askpython.com/execute-python-scripts/
Managed to create a file with these contents :
1 #!/usr/bin/env python3
2
3 print('hello world')
and saved it as hello.py
Next step, I wanted to open the 'command line' so I can type 'pyth
Dear all,
this is my first post to the list, so if I am not sufficiently detailed
let me know. Not even sure if this is the best list to send this to as
it seems to be an issue with Windows service privileges.
We have been running a package of python scripts as services on a
Windows XP machi
On Wed, Oct 14, 2015 at 11:47 PM, Peter Otten <__pete...@web.de> wrote:
> Chris Angelico wrote:
>
>> On Wed, Oct 14, 2015 at 8:55 PM, NewsLeecher User
>> wrote:
>>> #class example
>>> class SayMyName:
>>> def __init__(self, myname):
>>> self.myname = myname
>>> def say(self):
>>>
Chris Angelico wrote:
> On Wed, Oct 14, 2015 at 8:55 PM, NewsLeecher User
> wrote:
>> #class example
>> class SayMyName:
>> def __init__(self, myname):
>> self.myname = myname
>> def say(self):
>> print "Hello, my name is", self.myname
>
> Side point: This is a poor examp
In reply to "edmondo.giovanno...@gmail.com" who wrote the following:
> Il giorno mercoled=EC 14 ottobre 2015 12:04:30 UTC+2, Chris Angelico ha scr=
> itto:
> > On Wed, Oct 14, 2015 at 8:55 PM, NewsLeecher User wrote:
> > > But with this script i get an error:
> > > But i have not so many experienc
On Wed, Oct 14, 2015 at 8:55 PM, NewsLeecher User wrote:
> #class example
> class SayMyName:
> def __init__(self, myname):
> self.myname = myname
> def say(self):
> print "Hello, my name is", self.myname
Side point: This is a poor example for _any_ Python. In Py2, that
mak
Il giorno mercoledì 14 ottobre 2015 12:04:30 UTC+2, Chris Angelico ha scritto:
> On Wed, Oct 14, 2015 at 8:55 PM, NewsLeecher User wrote:
> > But with this script i get an error:
> > But i have not so many experience to see what the error is.
> > Good someone help me with this ?
>
> You need to te
On Wed, Oct 14, 2015 at 8:55 PM, NewsLeecher User wrote:
> But with this script i get an error:
> But i have not so many experience to see what the error is.
> Good someone help me with this ?
You need to tell us what the error is :)
But, looking in my crystal ball, I find a hint that you're usi
Hello,
I have the book Python for Dummies and i downloaden from the Dummiesite some
python examples.
But with this script i get an error:
But i have not so many experience to see what the error is.
Good someone help me with this ?
#Chapter 3
#Basic Elements and Syntax
#=
#SHORT EXAMPLES
#
In a message of Wed, 14 Oct 2015 03:03:31 -, laverdur...@gmail.com writes:
>hello I have this error
>while trying to re-install the program and it’s still show
>can you please help me ?
1. If you are running XP, you cannot run 3.5. XP is not supported.
2. Otherwise The api-ms-win-crt-runt
hello I have this error
while trying to re-install the program and it’s still show
can you please help me ?
Thanks!--
https://mail.python.org/mailman/listinfo/python-list
Yes! it is working, and do you have any idea about pylauncher. If possible,
could you brief something about it.
*UDHAY PRAKASH*
Ph:+91-9533787794
udhayprakash.blogspot.com
On Wed, Oct 14, 2015 at 1:01 AM, Mathew Carrick
wrote:
> Hi Uday,
>
> Pip should support using the pip{version} command t
36 matches
Mail list logo