Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~2K People Reached
Favorite Forums
Favorite Tags
Member Avatar for oaktrees

Is there a way to append the current date to an output file. My output statement looks like, [CODE]result=open('Results.csv','wb')[/CODE] If I run it today, I would like the file name to be something like Results20100528 (for May 28, 2010). If I run it tomorrow, I would like it to be …

Member Avatar for oaktrees
0
104
Member Avatar for oaktrees

I have code that opens a URL, whose page looks like this... "A",31.49,"5/26/2010","4:00pm",+0.25,31.51,32.25,31.37,3811721 The code parses this web page and writes it to a CSV file. Here is a snipet of the code, [CODE] def __req(stat): url = ... % (stat) return urllib.urlopen(url).read().strip().strip('"') #Manipulate data from web and write to …

Member Avatar for oaktrees
0
85
Member Avatar for oaktrees

Could someone point me in the right direction? I have two excel files that I would like to merge. Is xlwrt and xlrd the place to start? If so, are these part of the standard library? Thank you.

Member Avatar for jcao219
0
120
Member Avatar for oaktrees

This should be simple, but I think I am missing up the syntax. I am trying to make a list of the letters that appear in a string. import string values=[] values[5]="12234.7B" holder=[] holder.append(values[5].letters) This code gives me an error on the letters function. Any idea why? Many thanks.

Member Avatar for oaktrees
0
115
Member Avatar for oaktrees

I am reading in a string from a file which has the format $ 235.0 M. I need to convert this to a number and save the letter M somewhere else. Any pointers on how to strip off the $ and M? Thank you.

Member Avatar for oaktrees
0
132
Member Avatar for oaktrees

I have the following code, [code] import csv w=csv.writer(file('newfile.csv','wb'),dialect='excel') some_values=[[1,2,3],['A','B','C'],[4,'"5"','ab,c']] w.writerows(some_values) [/code] When I run it on my computer (a mac), newfile.csv is created. However, when I open newfile.csv, it is empty. Any ideas why?

Member Avatar for oaktrees
0
2K