Re: python script for .dat file

2016-04-05 Thread Steven D'Aprano
On Wed, 6 Apr 2016 07:49 am, Muhammad Ali wrote: > Would any one paste here some reference/sample python code for such > extraction of data into text file? column1 = ['aa', 'bb', 'cc', 'dd', 'ee', 'ff'] # strings column2 = [97, 105, 16, 4, 48, 274] # ints column3 = [12.345, 7.821, -4.034, 19.03

Re: python script for .dat file

2016-04-05 Thread Ben Finney
Muhammad Ali writes: > Would any one paste here some reference/sample python code for such > extraction of data into text file? We're not going to write it for you. Please show what code you have written so far; a small, self-contained code example. Explain what you expect that code to do, and

Re: python script for .dat file

2016-04-05 Thread Erik
Hi Muhammad, On 05/04/16 22:49, Muhammad Ali wrote: Would any one paste here some reference/sample python code for such extraction of data into text file? You haven't really explained what you want to achieve. What is the input format, what is the output format, what constraints are there on

Re: python script for .dat file

2016-04-05 Thread Muhammad Ali
On Tuesday, April 5, 2016 at 2:24:02 PM UTC-7, Joel Goldstick wrote: > On Tue, Apr 5, 2016 at 4:47 PM, Mark Lawrence via Python-list > wrote: > > On 05/04/2016 21:35, Michael Selik wrote: > >> > >> What code have you written so far? > >> > > > > Would you please not top post on this list, it drive

Re: python script for .dat file

2016-04-05 Thread Joel Goldstick
On Tue, Apr 5, 2016 at 4:47 PM, Mark Lawrence via Python-list wrote: > On 05/04/2016 21:35, Michael Selik wrote: >> >> What code have you written so far? >> > > Would you please not top post on this list, it drives me nuts!!! > > A short drive? ;) -- Joel Goldstick http://joelgoldstick.com/blog

Re: python script for .dat file

2016-04-05 Thread Mark Lawrence via Python-list
On 05/04/2016 21:35, Michael Selik wrote: What code have you written so far? Would you please not top post on this list, it drives me nuts!!! -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/ma

Re: python script for .dat file

2016-04-05 Thread Michael Selik
What code have you written so far? > On Apr 5, 2016, at 5:27 PM, Muhammad Ali wrote: > >> On Tuesday, April 5, 2016 at 9:07:54 AM UTC-7, Oscar Benjamin wrote: >>> On 5 April 2016 at 16:44, Muhammad Ali wrote: On Tuesday, April 5, 2016 at 8:30:27 AM UTC-7, Joel Goldstick wrote: On Tue,

Re: python script for .dat file

2016-04-05 Thread Muhammad Ali
On Tuesday, April 5, 2016 at 9:07:54 AM UTC-7, Oscar Benjamin wrote: > On 5 April 2016 at 16:44, Muhammad Ali wrote: > > On Tuesday, April 5, 2016 at 8:30:27 AM UTC-7, Joel Goldstick wrote: > >> On Tue, Apr 5, 2016 at 11:23 AM, Muhammad Ali > >> wrote: > >> > > >> > Could any body tell me a gener

Re: python script for .dat file

2016-04-05 Thread Oscar Benjamin
On 5 April 2016 at 16:44, Muhammad Ali wrote: > On Tuesday, April 5, 2016 at 8:30:27 AM UTC-7, Joel Goldstick wrote: >> On Tue, Apr 5, 2016 at 11:23 AM, Muhammad Ali >> wrote: >> > >> > Could any body tell me a general python script to generate .dat file after >> > the extraction of data from mo

Re: python script for .dat file

2016-04-05 Thread Mark Lawrence via Python-list
On 05/04/2016 16:23, Muhammad Ali wrote: Hello, Could any body tell me a general python script to generate .dat file after the extraction of data from more than 2 files, say file A and file B? Or could any body tell me the python commands to generate .dat file after the extraction of data fr

Re: python script for .dat file

2016-04-05 Thread Muhammad Ali
On Tuesday, April 5, 2016 at 8:30:27 AM UTC-7, Joel Goldstick wrote: > On Tue, Apr 5, 2016 at 11:23 AM, Muhammad Ali > wrote: > > > > Hello, > > > > Could any body tell me a general python script to generate .dat file after > > the extraction of data from more than 2 files, say file A and file B?

Re: python script for .dat file

2016-04-05 Thread Joel Goldstick
On Tue, Apr 5, 2016 at 11:23 AM, Muhammad Ali wrote: > > Hello, > > Could any body tell me a general python script to generate .dat file after > the extraction of data from more than 2 files, say file A and file B? > > Or could any body tell me the python commands to generate .dat file after the

python script for .dat file

2016-04-05 Thread Muhammad Ali
Hello, Could any body tell me a general python script to generate .dat file after the extraction of data from more than 2 files, say file A and file B? Or could any body tell me the python commands to generate .dat file after the extraction of data from two or more than two files? I have to m