Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > fr.comp.lang.python > #3444

pandas switch-on switch-off

From carboleum <c4rboleum-NOSPAM@gmail.com>
Newsgroups fr.comp.lang.python
Subject pandas switch-on switch-off
Date 2021-04-02 11:19 +0200
Organization A noiseless patient Spider
Message-ID <s46nio$r79$1@dont-email.me> (permalink)

Show all headers | View raw


Bonjour,

Dans mon dataframe, j'ai une colonne "on" qui allume la lumière et une 
colonne "off" qui éteint la lumière.

Quelqu'un connais la fonction (si elle existe ?) qui renvoie la colonne 
"lumière allumée" ?

     on  off  res
0    0    0    0
1    0    0    0
2    1    0    1
3    0    0    1
4    0    1    0
5    0    0    0
6    0    0    0
7    0    1    0
8    0    0    0
9    1    0    1
10   0    0    1
11   1    0    1
12   0    0    1
13   0    1    0
14   0    1    0
15   0    0    0

Ou une piste ?

Merci

Back to fr.comp.lang.python | Previous | NextNext in thread | Find similar


Thread

pandas switch-on switch-off carboleum <c4rboleum-NOSPAM@gmail.com> - 2021-04-02 11:19 +0200
  Re: pandas switch-on switch-off Damien Wyart <damien.wyart@free.fr> - 2021-04-02 11:34 +0200
    Re: pandas switch-on switch-off carboleum <c4rboleum-NOSPAM@gmail.com> - 2021-04-02 12:25 +0200
      Re: pandas switch-on switch-off Damien Wyart <damien.wyart@free.fr> - 2021-04-02 16:47 +0200
        Re: pandas switch-on switch-off carboleum <c4rboleum-NOSPAM@gmail.com> - 2021-04-02 18:29 +0200
        Re: pandas switch-on switch-off Nicolas <nicolasp@aaton.com> - 2021-04-06 08:53 +0200
          Re: pandas switch-on switch-off Damien Wyart <damien.wyart@free.fr> - 2021-04-06 18:42 +0200
            Re: pandas switch-on switch-off Alain Ketterlin <alain@universite-de-strasbourg.fr.invalid> - 2021-04-06 22:00 +0200
            Re: pandas switch-on switch-off Nicolas <nicolasp@aaton.com> - 2021-04-07 08:50 +0200
  Re: pandas switch-on switch-off carboleum <c4rboleum-NOSPAM@gmail.com> - 2021-07-09 15:52 +0200
    Re: pandas switch-on switch-off Damien Wyart <damien.wyart@free.fr> - 2021-07-15 11:23 +0200
      Re: pandas switch-on switch-off Alain Ketterlin <alain@universite-de-strasbourg.fr.invalid> - 2021-07-15 13:20 +0200
      Re: pandas switch-on switch-off Carboléüm <c4rboleumNOSPAM@gmail.com> - 2021-07-16 10:13 +0200
    Re: pandas switch-on switch-off Carboleum <c4rboleum**NOSPAM**@gmail.com.invalid> - 2022-04-03 14:51 +0200
      Re: pandas switch-on switch-off Damien Wyart <damien.wyart@free.fr> - 2022-04-12 07:34 +0200

csiph-web