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
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.
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
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
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