[google-appengine] Re: csv files

2009-05-14 Thread Nik

tnx...i am working on this task n hope ur idea cn be helpful...


On May 14, 8:03 pm, djidjadji  wrote:
> Write a python script that does the following
>
> #
> Afile = open("Afile.csv")
> Alines = Afile.readlines()
> Afile.close()
> Bfile = open("Afile.csv")
> Blines = Bfile.readlines()
> Bfile.close()
>
> for lineA,lineB in zip(Alines,Blines):
>     # convert the lines to the one you want
>     print theLine
> #
>
> Redirect the ouptput to a file and construct a loader for this new csv file
>
> 2009/5/14 Nik :
>
>
>
> > Hi All,
>
> > ::programming code has to be in python ::
> > I have a problem in the task :
>
> > i have two Csv files A & B which has following contents:
>
> > A file.csv                            B file.csv
> > label a(4labels)                    3 users
> > label b (7labels)                   10 users
> > label c (8labels)                   12 users
>
> > now i want my output like this
>
> > 12(4*3)labels crated for label a  category
>
> > 70(7*10)labels crated for label b  category
>
> > 96(8*12)labels crated for label c  category
>
> > so thats d task ...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: csv files

2009-05-14 Thread djidjadji

Write a python script that does the following

#
Afile = open("Afile.csv")
Alines = Afile.readlines()
Afile.close()
Bfile = open("Afile.csv")
Blines = Bfile.readlines()
Bfile.close()

for lineA,lineB in zip(Alines,Blines):
# convert the lines to the one you want
print theLine
#

Redirect the ouptput to a file and construct a loader for this new csv file

2009/5/14 Nik :
>
> Hi All,
>
> ::programming code has to be in python ::
> I have a problem in the task :
>
> i have two Csv files A & B which has following contents:
>
> A file.csv                            B file.csv
> label a(4labels)                    3 users
> label b (7labels)                   10 users
> label c (8labels)                   12 users
>
>
> now i want my output like this
>
> 12(4*3)labels crated for label a  category
>
> 70(7*10)labels crated for label b  category
>
> 96(8*12)labels crated for label c  category
>
> so thats d task ...
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---