Thank you All!!
I am impressed with the support. It was very helpful and timely. I was able to
put together a script to do what I wanted. I know now that I wont be wasting
time learning Python. As with any language, it is about understanding the
syntax. As I mentioned before, I want to make
On 08/10/14 02:02, Phillip Pugh wrote:
with open("InputTest.txt","r") as f:
with open("Outputt.txt", "w") as fw:
for line in f:
first,second = line[:32], line[32:37]
if first.isspace()== False:
fw.write (second.strip()+ first.str
Thanks for the suggestions
On Tue, Oct 7, 2014 at 3:10 AM, Alan Gauld wrote:
> On 06/10/14 23:08, Jan Erik Moström wrote:
>>
>> I want to write a small script that scales photos. I want the scaled
>> photos to keep all meta data available in the originals. I also want
>> to keep this python only
On Tue, Oct 7, 2014 at 7:50 PM, Danny Yoo wrote:
> Hi Juan,
>
> I think you're looking for:
>
> http://effbot.org/zone/element.htm#searching-for-subelements
>
> where you should be able to do something like:
>
> sml._xml.findtext('steamID64')
>
> to get the text "76561198084537782".
>
>
>
On 07/10/14 20:53, Clayton Kirkwood wrote:
In this case, I was able to determine which line I
> was interested in because it had a
> specific marker.
> From that point, I knew specific markers to look
> for for each desired field.
I thought the desired parenthesis couple was assigned
> to th
>> It's working, the thing is that I don't know how to "navigate" inside the
>> XML, I read the doc but everything there regarding key-value is on
>> for-loops, I need something more direct, like:
Hi Juan,
I think you're looking for:
http://effbot.org/zone/element.htm#searching-for-subeleme
Good afternoon Clayton,
!A regex doesn't understand the structure of an html document. For
!example
!you need to keep track of the nesting level manually to find the cells
!of
!the inner of two nested tables.
!
!> question still remains: does the
!> search start at the beginning of the line eac
On Tue, Oct 7, 2014 at 4:08 PM, Juan Christian
wrote:
> I have this XML scheme:
> http://steamcommunity.com/profiles/76561198084537782?xml=1
>
> My code:
>
> self._xml = ElementTree.fromstring(requests.get(url + '?xml=1').content)
> print(self._xml.tag) > returns > profile
>
> It's working, the t
!-Original Message-
!From: Danny Yoo [mailto:d...@hashcollision.org]
!Sent: Tuesday, October 07, 2014 11:14 AM
!To: Clayton Kirkwood
!Cc: Python Tutor Mailing List
!Subject: Re: [Tutor] search/match file position q
!
!> So, what makes regex wrong for this job? question still remains: does
!>
!> So, what makes regex wrong for this job?
!
!A regex doesn't understand the structure of an html document. For
!example
!you need to keep track of the nesting level manually to find the cells
!of
!the inner of two nested tables.
!
!> question still remains: does the
!> search start at the beg
I have this XML scheme:
http://steamcommunity.com/profiles/76561198084537782?xml=1
My code:
self._xml = ElementTree.fromstring(requests.get(url + '?xml=1').content)
print(self._xml.tag) > returns > profile
It's working, the thing is that I don't know how to "navigate" inside the
XML, I read the
> So, what makes regex wrong for this job? question still remains: does the
> search start at the beginning of the line each time or does it step forward
> from the last search? I will check out beautiful soup as suggested in a
> subsequent mail; I'd still like to finish this process:<}}
Mathemat
Clayton Kirkwood wrote:
>
>
> !-Original Message-
> !From: Tutor [mailto:tutor-bounces+crk=godblessthe...@python.org] On
> !Behalf Of Peter Otten
> !Sent: Tuesday, October 07, 2014 3:50 AM
> !To: tutor@python.org
> !Subject: Re: [Tutor] search/match file position q
> !
> !Clayton Kirkwoo
!-Original Message-
!From: Tutor [mailto:tutor-bounces+crk=godblessthe...@python.org] On
!Behalf Of Peter Otten
!Sent: Tuesday, October 07, 2014 3:50 AM
!To: tutor@python.org
!Subject: Re: [Tutor] search/match file position q
!
!Clayton Kirkwood wrote:
!
!> I was trying to keep it generic
On 07/10/14 14:40, Richard Dillon wrote:
I create column headings using \t
print('base1\tbase2\theight\tarea')
and I would like the numbers to align with the headings.
> I think that I need to use format instead of doing this:
Yes, using tabs is a bit hit and miss depemding on the lengt
I create column headings using \t
print('base1\tbase2\theight\tarea')
and I would like the numbers to align with the headings. I think that I need to
use format instead of doing this:
print(A,' ',B,' ',C,' ',int(area1))
print(D,' ',E,' ',F,' ',int(area2))
b
"Clayton Kirkwood" Wrote in message:
> I was trying to keep it generic.
> Wrapped data file:
> data-tmpl=""> href="http://finance.yahoo.com/q?s=SWKS";
> data-rapid_p="18">SWKS data-model="name:DatumModel;id:SWKS:qsi:wk52:low;"
> data-tmpl="change:yfin.datum">23.27', line_in)
Hey,
Most of your answers you already got. I'm just willing to share a
short story of mine considering big data and python.
I've done computer vision on images ~15Mb big each. There's 6 filters
of which each can reach 7TB in total size. I ran detection algorithms
per 2 filters at a time that total
El Oct 6, 2014, a las 6:42 PM, Phillip Pugh escribió:
> I am trying to decide if Python is the right toolset for me. I do a lot of
> data analytics. Over the years I have used a lot of SQL and VBA, but the data
> sources are getting bigger. I am thinking Python may be what I need to use,
> but
Clayton Kirkwood wrote:
> I was trying to keep it generic.
> Wrapped data file:
>data-model="name:DatumModel;id:null;" data-tmpl="">data-ylk="cat:portfolio;cpos:1"
>href="http://finance.yahoo.com/q?s=SWKS";
>
On 07/10/14 00:55, Clayton Kirkwood wrote:
I haven't been able to find an definitive answer.
There isn't one.
Each technique has its place. It depends on what you
are doing and why. And to answer that you need to ask a
definitive question.
I am looking through a file(stream:<), for several m
On 06/10/14 23:42, Phillip Pugh wrote:
I am trying to decide if Python is the right toolset for me.
> I do a lot of data analytics.
It can almost certainly do what you want but there may be other
tools that do it better. However, data analytics is quite vague.
It depends on what kind of data an
I was trying to keep it generic.
Wrapped data file:
http://finance.yahoo.com/q?s=SWKS";
data-rapid_p="18">SWKS23.27', line_in)
#scan to SWKS"> in data
#line, stock sh
23 matches
Mail list logo