Boris Vladimir Comi escrito:
I found a way to create daily averages of many variables, for example of a
database that has the following structure:
Fecha,Time, DirViento, MagViento, Temperatura, Humedad, PreciAcu.
Each column is daily data every 15 minutes. I share the code, which, with the
On 11/10/2013 16:09, Juan I. Scopp wrote:
Hi guys.
I have a CSV file, which I created using an HTML export from a Check
Point firewall policy.
Each rule is represented as several lines, in some cases. That occurs
when a rule has several address sources, destinations or services.
I need the output
Hi guys.
I have a CSV file, which I created using an HTML export from a Check Point
firewall policy.
Each rule is represented as several lines, in some cases. That occurs when
a rule has several address sources, destinations or services.
I need the output to have each rule described in only one lin
On 11/10/13 16:23, Peter Otten wrote:
infile = open(name, 'r')
lst = infile.readlines()
infile.close()
You could do that in one line:
lst = open(name).readlines()
Talking about bad habits -- what you are suggesting here is a step in the
wrong direction.
with
Mark Lawrence wrote:
> On 11/10/2013 15:23, Peter Otten wrote:
>> Alan Gauld wrote:
>>
Use the stripw() function we saw on individual words to make
finding hits more accurate
>>>
>>> No idea what that means but since the assignment suggests
>>> it we should assume its correct.
>>
>> My c
On 11/10/2013 15:23, Peter Otten wrote:
Alan Gauld wrote:
Use the stripw() function we saw on individual words to make
finding hits more accurate
No idea what that means but since the assignment suggests
it we should assume its correct.
My crystal ball says
def stripw(word):
return wo
Alan Gauld wrote:
>> Use the stripw() function we saw on individual words to make
>> finding hits more accurate
>
> No idea what that means but since the assignment suggests
> it we should assume its correct.
My crystal ball says
def stripw(word):
return word.strip('",.')
or somesuch.
> Y
On 11/10/13 06:18, Jackie Canales wrote:
Need assistance with a questions in regards to python:
1.function occurs(name, word) which looks for a word in the file with
name name.
That means you need to define a function called
occurs() not lines().
2. for each occurrence of the word we want to
On 11/10/2013 06:18, Jackie Canales wrote:
for i in range(len(lst)):
line = lst[i]
Sound advice already from Dave and Peter so I'll just point out for the
benefit of newbies that you don't write Python for loops like this, it's.
for line in lst:
etc
Please see http://docs
Jackie Canales wrote:
> Need assistance with a questions in regards to python:
> 1. function occurs(name, word) which looks for a word in the file with
> name name. 2. for each occurrence of the word we want to display its
> context by showing the 5 words (or so) preceding and following the
> occu
Hi,
On 10 October 2013 11:34, Sreenivasulu wrote:
> Hi,
>
> I have windows 8 64 bit machine and installed python 2.7.3 64 bit
> version .
>
> i have 32 bit package 4Suite-XML-1.0.24Suite-XML-1.0.2.win32.exe package
> but am getting below error :
>
> Python 2.7.3 (default, Apr 10 2012, 23:24:
On 11/10/2013 01:18, Jackie Canales wrote:
> Need assistance with a questions in regards to python:
> 1. function occurs(name, word) which looks for a word in the file with name
> name.
> 2. for each occurrence of the word we want to display its context by showing
> the 5 words (or so) preceding
On 2013-10-10 16:04, Sreenivasulu wrote:
> ImportError: 'DLL load failed: %1 is not a valid Win32 application.'
>
> Please help me how to run win32 modules in 64 bit .
If I'm reading that correctly, that's not an error about running a 32-bit
application in a 64-bit environment, but an error about
Need assistance with a questions in regards to python:
1. function occurs(name, word) which looks for a word in the file with name
name.
2. for each occurrence of the word we want to display its context by showing
the 5 words (or so) preceding and following the occurrence, e.g. '... a man to
set
Hi,
I have windows 8 64 bit machine and installed python 2.7.3 64 bit version
.
i have 32 bit package 4Suite-XML-1.0.24Suite-XML-1.0.2.win32.exe package
but am getting below error :
Python 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit (AMD64)]
on win32
Type "help", "copyright", "c
Alex Kleider wrote:
> On 2013-10-09 00:29, Peter Otten wrote:
>> While I did not read the documentation I did try your code:
>>
>> (docopt)$ cat test
>> #!/usr/bin/env python
>> # -*- coding : utf -8 -*-
>> # file: 'test'
>> """Usage: test [new_data | text_entry FILE | show_data ] [-hdv]
>> [--d
16 matches
Mail list logo