title: How can I count how many rows have a value equal to 3 in each column and store them in a new column
body: <p>I am new to python. So I am trying to sum the total of each row/column with a value &quot;3&quot;, and store it in a new column in my dataframe.</p>
  <p>my data looks like this:</p>
  <pre><code>    [A] [B] [C] [D] [E] [F]
  
  ID1  1   2   2   3   1   1
  ID2  3   1   2   3   1   1
  ID3  1   1   2   1   1   2
  ID4  3   2   2   3   1   1
  ID5  1   1   2   3   1   3
  </code></pre>
  <p>So I want to create a new column named &quot;G&quot; that count how many times each &quot;ID&quot; have a value of 3.</p>
  <p>Can someone help, please.</p>