Add thousands separator with comma at IPython.display HTML
<p>My goal is to create a dataframe using Python.display that contains formatted values such that every value has a comma separator for every thousands. Like for example, I am trying to format all the values in the dataframe from these:</p>

<p><a href="https://i.stack.imgur.com/j1nUo.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/j1nUo.jpg" alt="enter image description here"></a> into these: <a href="https://i.stack.imgur.com/DKURk.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DKURk.jpg" alt="enter image description here"></a></p>

<p>I have been looking at <a href="https://stackoverflow.com/questions/5513615/add-decimal-mark-thousands-separators-to-a-number">here</a> and <a href="https://stackoverflow.com/questions/23544891/pandas-dataframe-formatting">here</a>, but I still can't make the formatting work. Does anyone have the solution to this?</p>

<p>Here's the code so far:</p>

<pre><code>import pandas as pd
from IPython.display import HTML

styles = [
    hover(),
    dict(selector = "th",
         props = [("font-size", "110%"),
                  ("text-align", "left"),
                  ("background-color", "#cacaca")
                 ]
        )
    ]

column_01 = [2000000000, 21000000, 3000]
df = pd.DataFrame(column_01)
html = (df.style.set_table_styles(styles))

'{0:,}'.format(100000000)

html
</code></pre>