Re: [Tutor] File extension change

2016-02-03 Thread Alan Gauld
On 02/02/16 17:46, Chelsea G wrote: > ...but then in the def json_output instead of having the > filename which i have now is 'test.txt' I want to have weekly_20160102.txt > same naming convention as the csv file i am inputting. Take a look at the os.path module documentation. There are several

Re: [Tutor] File extension change

2016-02-02 Thread Ben Finney
Chelsea G writes: > import csvimport jsonimport sysimport osfrom collections import > defaultdictfrom collections import Counter Your email client has, probably without your consent, mangled the content of your message. Please ensure your email client does not attempt to apply pretty formatting

[Tutor] File extension change

2016-02-02 Thread Chelsea G
Hi, So what I am working on is taking a csv file and only taking 2 columns from the spreadsheet and out putting that to a text file. Then taking those two columns and organize them by product(key) and outputting the description(values) that are associated. Some products have a lot of duplicate desc