Hello,
I'm working on a script which collects some data and puts into a csv
file which could be exported to excel.
so far so good, I'm able to do what I described.
When I run the script for the second time after a certain period of
time the results should appear next to the results of the last run,
Hello,
I'm working on a script which collects some data and puts into a csv
file which could be exported to excel.
so far so good, I'm able to do what I described.
When I run the script for the second time after a certain period of
time the results should appear next to the results of the last run,
I'm having a trouble consider this
import csv
f = open("/home/t/tp/va/some7.csv", "rb")
reader =csv.reader(f)
rows =[]
for row in reader:
rows.append(row)
rows[1].append('1')
print rows
f = open("/home/t/tp/va/e7.csv", "ab")
writer =csv.writer(f)
writer.writerows(rows)
f.close()
In the f
On Jul 26, 2:32 pm, John Machin <[EMAIL PROTECTED]> wrote:
> On Jul 27, 7:19 am, Rohan <[EMAIL PROTECTED]> wrote:
>
> > f = open("/home/t/tp/va/e7.csv", "ab")
>
> a means Append -- you are appending the data that you expect to the
> EXISTING
I would like to get a list of sub directories in a directory.
If I use os.listdir i get a list of directories and files in that .
i only want the list of directories in a directory and not the files
in it.
anyone has an idea regarding this.
--
http://mail.python.org/mailman/listinfo/python-list
I was wondering if there could be an arrangement where a file could be
attached and send as an email.
For ex
f = open(add.txt,w)
f.write('python')
f.close()
Now I would like to send an email with add.txt as an attachment, is it
possible ?
some one give me a pointer towards this.
--
http://mail.p
On Aug 2, 1:06 pm, Laurent Pointal <[EMAIL PROTECTED]> wrote:
> Rohan wrote:
> > I was wondering if there could be an arrangement where a file could be
> > attached and send as an email.
> > For ex
> > f = open(add.txt,w)
> > f.write('python')
>
Hello,
I would like my script to run once a week with out any external
interference.
More like a timer. Can it be done in python or should some other shell
scripting be used.
If anyone knows anything please let me know.
--
http://mail.python.org/mailman/listinfo/python-list
Hello,
I would like to write a script which does the following job.
Take column1 and 7 from 10 different excel sheets and pasthe them into
a new excel worksheet.
Any ideas on how to do it
Thanks,
--
http://mail.python.org/mailman/listinfo/python-list
On Aug 3, 7:22 pm, SMERSH009 <[EMAIL PROTECTED]> wrote:
> On Aug 3, 9:47 am,Rohan<[EMAIL PROTECTED]> wrote:
>
>
>
> > On Aug 2, 1:06 pm, Laurent Pointal <[EMAIL PROTECTED]> wrote:
>
> > >Rohanwrote:
> > > > I was wondering if there could
Hello,
Can some one tell me how do I get colored text. Say when I want to
write something in a text file , how do I get it colored.
--
http://mail.python.org/mailman/listinfo/python-list
On Aug 12, 10:01 pm, ianaré <[EMAIL PROTECTED]> wrote:
> On Aug 12, 10:05 pm, Rohan <[EMAIL PROTECTED]> wrote:
>
> > Hello,
> > Can some one tell me how do I get colored text. Say when I want to
> > write something in a text file , how do I get it colored.
&
I have the following piece of code
a = len(ab_file)
b= 0
while(bhttp://mail.python.org/mailman/listinfo/python-list
nment before I start parsing it.
BeautifulSoup library only fetches source of page. I need the access
to DOM after js execution with url as input parameter.
Any pointers?
--
Regards
Rohan
--
http://mail.python.org/mailman/listinfo/python-list
I want to write a function in Python for a tab delimited file I am dealing
with,to filter out values from a column, and put that parameter as a command
line option while running the script.
So,if the limit is 10,the filter out all the rows with values less than 10.
Also,I want to check if the nu
When I write program (.py) with IDLE , I am able to use run package .
- - - - start - - - -
if __name__ == '__main__':
import sys,os
import run
run.main(['', os.path.basename(sys.argv[0])] + sys.argv[1:])
- - - - end - - - - -
above code works simply with the IDLE.
But problem
i run .pyc file on another computer containing only python
installed , will it run ? or do i need to install 3rd party lib again on
that computer ? Anyone know how to make program lib independent , something
called embedded into one file only ?
thank you in anticipation .
Rohan.
--
http
Try using dividend % divisor, this will return the remainder
Rohan Pai
--
http://mail.python.org/mailman/listinfo/python-list
18 matches
Mail list logo