On 19/02/2013 15:40, Thomas Calmant wrote:
hi
It seems you forgot to escape the escape character in the file names ('\'):
"C:\Users\inshu.chauhan\Desktop\test.arff"
=> r"C:\Users\inshu.chauhan\Desktop\test.arff"
or
=> "C:\\Users\\inshu.chauhan\\Desktop\\test.arff"
++
Thomas
Yuck :)
--
Cheer
On Tue, Feb 19, 2013 at 4:54 PM, MRAB wrote:
> On 2013-02-19 15:27, inshu chauhan wrote:
>
>> Here is my attempt to merge 10 files stored in a folder into a single
>> file :
>>
>> import csv
>>
>> with open("C:\Users\inshu.chauhan\**Desktop\test.arff", "w") as w:
>> writer = csv.writer(w)
>>
On 2013-02-19 15:27, inshu chauhan wrote:
Here is my attempt to merge 10 files stored in a folder into a single file :
import csv
with open("C:\Users\inshu.chauhan\Desktop\test.arff", "w") as w:
writer = csv.writer(w)
for f in glob.glob("C:\Users\inshu.chauhan\Desktop\For
Model_600\*.
On 19/02/2013 15:27, inshu chauhan wrote:
Here is my attempt to merge 10 files stored in a folder into a single file :
import csv
with open("C:\Users\inshu.chauhan\Desktop\test.arff", "w") as w:
writer = csv.writer(w)
for f in glob.glob("C:\Users\inshu.chauhan\Desktop\For
Model_600\*.
hi
It seems you forgot to escape the escape character in the file names ('\'):
"C:\Users\inshu.chauhan\Desktop\test.arff"
=> r"C:\Users\inshu.chauhan\Desktop\test.arff"
or
=> "C:\\Users\\inshu.chauhan\\Desktop\\test.arff"
++
Thomas
2013/2/19 inshu chauhan
> Here is my attempt to merge 10 files
Here is my attempt to merge 10 files stored in a folder into a single file :
import csv
with open("C:\Users\inshu.chauhan\Desktop\test.arff", "w") as w:
writer = csv.writer(w)
for f in glob.glob("C:\Users\inshu.chauhan\Desktop\For
Model_600\*.arff"):
rows = open(f, "r").readlines(