How to draw a graphical count table in pandas
<p>I have a dataframe df with two columns <code>customer1</code> and <code>customer2</code> which are string valued.  I would like to make a square graphical representation of the count  number for each pair from those two columns.   </p>

<p>I  can do</p>

<pre><code>df[['customer1', 'customer2']].value_counts()
</code></pre>

<p>which will give me the counts.  But how can I make something that looks a little like:</p>

<p><a href="https://i.stack.imgur.com/GZ6yI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GZ6yI.png" alt="enter image description here"></a> </p>

<p>from the result?</p>

<p>I can't provide my real dataset  but here is a toy example with three labels in csv.</p>

<pre><code>customer1,customer2
a,b
a,c
a,c
b,a
b,c
b,c
c,c
a,a
b,c
b,c
</code></pre>