Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > it.comp.lang.python > #7756
| Path | csiph.com!aioe.org!.POSTED.rgeIdfeWcc1gT96gvQOpYQ.user.gioia.aioe.org!not-for-mail |
|---|---|
| From | dan258 <dan@258.boh> |
| Newsgroups | it.comp.lang.python |
| Subject | Re: minimi relativi in dataframe |
| Date | Wed, 18 Mar 2020 22:29:48 +0100 |
| Organization | Aioe.org NNTP Server |
| Lines | 28 |
| Message-ID | <r4u3s9$utp$1@gioia.aioe.org> (permalink) |
| References | <r4q90q$1c81$1@gioia.aioe.org> <r4su6k$1gic$1@gioia.aioe.org> <r4t7mp$o5b$1@gioia.aioe.org> <r4tdu3$1jr8$1@gioia.aioe.org> |
| NNTP-Posting-Host | rgeIdfeWcc1gT96gvQOpYQ.user.gioia.aioe.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-15; format=flowed |
| Content-Transfer-Encoding | 8bit |
| X-Complaints-To | abuse@aioe.org |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 |
| X-Notice | Filtered by postfilter v. 0.9.2 |
| Xref | csiph.com it.comp.lang.python:7756 |
Show key headers only | View raw
Il 18/03/2020 16:15, jak ha scritto:
> data = DataFrame({'a':[2.3, 1.9, 3.5, 2.8, 3.1, 2.7, 3.3]})
>
> a b c
> 0 2.3 NaN NaN
> 1 1.9 NaN NaN
> 2 3.5 1.9 1.6
> 3 2.8 1.9 0.9
> 4 3.1 2.8 0.3
> 5 2.7 1.9 0.8
> 6 3.3 2.7 0.6
>
> Ok. Ora sono un po' più confuso :^\
> Saresti così gentile da spiegarmi cosa dovrebbe rappresentare la colonna
> B? Perché, ad esempio, alla riga 5 mi sarei aspettato di trovare 2.3
> anziché 1.9. Perdono, a volte sono un po'duro di comprendonio :^)
No no, hai ragione, anche se non so se riusciro' a spiegarmi :-)
Puoi considerare A il prezzo di una merce in un dato giorno.
B rappresenta dei minimi relativi che il prezzo ha toccato.
Il prezzo 2.3 in riga zero viene "cancellato" da 1.9 perche' e' piu'
basso e recente. Il senso di tutto cio' e' avere un riferimento di dove
il prezzo puo' arrivare al ribasso rispetto a dove e': per esempio in A6
sta a 3.3, ma e' stato recentemente a 2.7 e se va sotto i 2.7 puo'
arrivare a 1.9 (nota che pure il 2.8 viene "dimenticato" quando siamo in
riga 6 perche' 2.7 e' piu' basso e recente).
Back to it.comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar
minimi relativi in dataframe dan258 <dan@258.boh> - 2020-03-17 11:32 +0100
Re: minimi relativi in dataframe jak <nospam@please.ty> - 2020-03-18 11:46 +0100
Re: minimi relativi in dataframe dan258 <dan@258.boh> - 2020-03-18 14:28 +0100
Re: minimi relativi in dataframe jak <nospam@please.ty> - 2020-03-18 16:15 +0100
Re: minimi relativi in dataframe dan258 <dan@258.boh> - 2020-03-18 22:29 +0100
Re: minimi relativi in dataframe jak <nospam@please.ty> - 2020-03-20 19:31 +0100
Re: minimi relativi in dataframe dan258 <dan@258.boh> - 2020-03-22 09:47 +0100
Re: minimi relativi in dataframe jak <nospam@please.ty> - 2020-03-22 11:21 +0100
Re: minimi relativi in dataframe dan258 <dan@258.boh> - 2020-03-22 12:22 +0100
Re: minimi relativi in dataframe huhher <elia.toselli@outlook.it> - 2020-08-09 20:17 +0200
csiph-web