Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Valor nulo para o scipy e numpy
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Frederico Arnoldi  
View profile   Translate to Translated (View Original)
 More options Jul 28, 5:46 pm
From: Frederico Arnoldi <fred...@hotmail.com>
Date: Tue, 28 Jul 2009 21:46:07 +0000
Local: Tues, Jul 28 2009 5:46 pm
Subject: Valor nulo para o scipy e numpy

Fala pessoal, tudo certo?
Existe um maneira confiável de codificar um valor nulo no scipy/numpy, como o "NULL" no R?
Abs,
Fred

_________________________________________________________________
Com o Windows Live, você pode organizar, editar e compartilhar suas fotos.
http://www.microsoft.com/brasil/windows/windowslive/products/photo-ga...


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Roberto De Almeida  
View profile   Translate to Translated (View Original)
 More options Jul 29, 7:43 am
From: Roberto De Almeida <robe...@dealmeida.net>
Date: Wed, 29 Jul 2009 08:43:41 -0300
Local: Wed, Jul 29 2009 7:43 am
Subject: Re: [pyscience-brasil:827] Valor nulo para o scipy e numpy

E ai, Fred!

2009/7/28 Frederico Arnoldi <fred...@hotmail.com>

>  Fala pessoal, tudo certo?
> Existe um maneira confiável de codificar um valor nulo no scipy/numpy, como
> o "NULL" no R?
> Abs,
> Fred

Voce pode mascarar valores numa matriz do Numpy:

  from numpy import *
  data = arange(16).reshape(4,4)
  data = ma.masked_where(data > 12, data)

Normalmente eu defino um valor "missing_value" e depois mascaro:

  missing_value = -9999
  data = arange(16).reshape(4,4)
  data[some_index] = -9999
  ...
  data = ma.masked_equal(data, -9999)  # nao tenho certeza se a sintaxe eh
esta

O bom de trabalhar com matrizes com mascara assim eh que voce pode, eg,
calcular medias sem problema.

--Roberto


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Frederico Gonzalez Colombo Arnoldi  
View profile   Translate to Translated (View Original)
 More options Jul 31, 9:50 am
From: "Frederico Gonzalez Colombo Arnoldi" <f...@rc.unesp.br>
Date: Fri, 31 Jul 2009 10:50:11 -0300 (BRT)
Local: Fri, Jul 31 2009 9:50 am
Subject: Re: [pyscience-brasil:828] Re: Valor nulo para o scipy e numpy
Fala Roberto!
Valeu pela sugestão.
abs,
Fred


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google