お世話になります。
SAS→Pythonのpandasの書き換えを行っているのですが、
data a;
set b;
array xxx(*) x1 - x13;
do i = 1 to dim(xxx);
if xxx(i) = 1 then output;
end;
run;
のように、1行から(条件に当てはまれば)複数行が生成される、というプログラムをSASで書いています。
これをPandasに書き換えるにはどうすればよろしいでしょうか。
よく伝わらないようでしたら、追記させていただきます。
よろしくお願いいたします。