title: Correlation between variables using numpy
body: <p>I would need to calculate the correlation between the presence of uppercase, special punctuation, specific words, in texts labelled as fake/not fake.</p>
  <p>For example:</p>
  <pre><code>Text      Label        Uppercase       Special Punctuation    Specific Word
  text1       1                1                       0                   1
  text2       0                0                       0                   0
  text3       1                1                       1                   1
  text4       1                1                       1                   1
  text5       0                0                       0                   1
  </code></pre>
  <p>Uppercase, Special Punctuation and Specific Word can take only one of these two values: 1 or 0.
  I would like to determine the correlation between these features related to the label (fake=1/not fake=0). I thought to use Pearson correlation as follows</p>
  <pre><code>import numpy as np
  
  # Create correlation matrix
  corr_matrix = df.corr().abs()
  </code></pre>
  <p>May I ask you if this the right function to use or if there are different correlation functions in python that calculate the correlation between binary variables?</p>