On Nov 1, 6:50 pm, "cbr...@cbrownsystems.com"
wrote:
> On Nov 1, 1:58 am, iwawi wrote:
>
>
>
>
>
> > On 1 marras, 09:59, "cbr...@cbrownsystems.com"
>
> > wrote:
> > > On Oct 31, 11:46 pm, iwawi wrote:
>
> > > > On 31 loka, 21:48, Tim Chase wrote:
>
> > > > > > PRJ01001 4 00100END
> > > > > > P
On Nov 1, 1:58 am, iwawi wrote:
> On 1 marras, 09:59, "cbr...@cbrownsystems.com"
>
>
>
> wrote:
> > On Oct 31, 11:46 pm, iwawi wrote:
>
> > > On 31 loka, 21:48, Tim Chase wrote:
>
> > > > > PRJ01001 4 00100END
> > > > > PRJ01002 3 00110END
>
> > > > > I would like to pick only some columns to a
On 1 marras, 09:59, "cbr...@cbrownsystems.com"
wrote:
> On Oct 31, 11:46 pm, iwawi wrote:
>
>
>
>
>
> > On 31 loka, 21:48, Tim Chase wrote:
>
> > > > PRJ01001 4 00100END
> > > > PRJ01002 3 00110END
>
> > > > I would like to pick only some columns to a new file and put them to a
> > > > certain p
On Oct 31, 11:46 pm, iwawi wrote:
> On 31 loka, 21:48, Tim Chase wrote:
>
>
>
> > > PRJ01001 4 00100END
> > > PRJ01002 3 00110END
>
> > > I would like to pick only some columns to a new file and put them to a
> > > certain places (to match previous data) - definition file (def.csv)
> > > could be
On 31 loka, 21:48, Tim Chase wrote:
> > PRJ01001 4 00100END
> > PRJ01002 3 00110END
>
> > I would like to pick only some columns to a new file and put them to a
> > certain places (to match previous data) - definition file (def.csv)
> > could be something like this:
>
> > VARIABLE FIELDSTARTS
On Oct 31, 12:48 pm, Tim Chase wrote:
> > PRJ01001 4 00100END
> > PRJ01002 3 00110END
>
> > I would like to pick only some columns to a new file and put them to a
> > certain places (to match previous data) - definition file (def.csv)
> > could be something like this:
>
> > VARIABLE FIELDSTARTS
Sorry to clarify, I was having issues getting this to work. I'm relatively new
to Python. Sorry for the miscommunication.
> Date: Sun, 31 Oct 2010 16:13:42 -0500
> From: python.l...@tim.thechases.com
> To: brad...@hotmail.com
> CC: python-list@python.org
> Subject: Re: te
On 10/31/10 14:52, Braden Faulkner wrote:
import csv
f = file('def.csv', 'rb')
f.next() # discard the header row
r = csv.reader(f, delimiter=';')
fields = [
(varname, slice(int(start), int(start)+int(size)), width)
for varname, start, size, width
in r
]
I also am having issues with this.
> Date: Sun, 31 Oct 2010 14:48:09 -0500
> From: python.l...@tim.thechases.com
> To: iwawi...@gmail.com
> Subject: Re: text file reformatting
> CC: python-list@python.org
>
> > PRJ01001 4 00100END
> > PRJ01002 3 00110END
> >
PRJ01001 4 00100END
PRJ01002 3 00110END
I would like to pick only some columns to a new file and put them to a
certain places (to match previous data) - definition file (def.csv)
could be something like this:
VARIABLEFIELDSTARTS FIELD SIZE NEW PLACE IN NEW DATA FILE
ProjID ;
10 matches
Mail list logo