Re: Read number of CSV files

2012-11-12 Thread Smaran Harihar
Oh that is great. [apology on sending the mail directly] Thanks, Smaran On Mon, Nov 12, 2012 at 10:50 AM, Peter Otten <__pete...@web.de> wrote: > Peter Otten wrote: > > [please don't email me directly] > > > How is using glob different from os.listdir() Peter? > > glob retains the path and allo

Re: Read number of CSV files

2012-11-12 Thread Peter Otten
Peter Otten wrote: [please don't email me directly] > How is using glob different from os.listdir() Peter? glob retains the path and allows you to filter the files. Compare: >>> import os, glob >>> os.listdir("alpha") ['one.py', 'two.py', 'one.txt', 'three.py', 'three.txt', 'two.txt'] >>> glob.

Re: Read number of CSV files

2012-11-08 Thread Peter Otten
Smaran Harihar wrote: > I am able to read through a CSV File and fetch the data inside the CSV > file but I have a really big list of CSV files and I wish to do the same > particular code in all the CSV files. > > Is there some way that I can loops through all these files, which are in a > single

Re: Read number of CSV files

2012-11-07 Thread Adnan Sadzak
Maybe os.listdir() can help You, and then go through files and do whatever You want. On Wed, Nov 7, 2012 at 11:11 PM, Smaran Harihar wrote: > Hi Guys, > > I am able to read through a CSV File and fetch the data inside the CSV > file but I have a really big list of CSV files and I wish to do the

Read number of CSV files

2012-11-07 Thread Smaran Harihar
Hi Guys, I am able to read through a CSV File and fetch the data inside the CSV file but I have a really big list of CSV files and I wish to do the same particular code in all the CSV files. Is there some way that I can loops through all these files, which are in a single folder, and get my code